mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
Don't blow up if Redis switches to READONLY
This commit is contained in:
parent
8129cce104
commit
5b3f99aa50
56 changed files with 194 additions and 147 deletions
|
@ -85,7 +85,7 @@ class Auth::DefaultCurrentUserProvider
|
|||
if SiteSetting.log_out_strict && (user = current_user)
|
||||
user.auth_token = nil
|
||||
user.save!
|
||||
MessageBus.publish "/logout", user.id, user_ids: [user.id]
|
||||
DiscourseBus.publish "/logout", user.id, user_ids: [user.id]
|
||||
end
|
||||
cookies[TOKEN_COOKIE] = nil
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue