FEATURE: log out user everywhere and refresh/redirect

This commit is contained in:
Arpit Jalan
2014-11-18 21:17:38 +05:30
parent b4844d4477
commit eb9eada894
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