mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 06:14:12 +08:00
Merge pull request #2979 from techAPJ/patch-1
FEATURE: log out user everywhere and refresh/redirect
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user