Merge pull request #2979 from techAPJ/patch-1

FEATURE: log out user everywhere and refresh/redirect
This commit is contained in:
Sam
2014-11-21 16:59:44 +11:00
3 changed files with 26 additions and 0 deletions

View File

@ -68,6 +68,7 @@ class Admin::UsersController < Admin::AdminController
def log_out
@user.auth_token = nil
@user.save!
MessageBus.publish "/logout", @user.id, user_ids: [@user.id]
render nothing: true
end