mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-10 11:24:10 -04:00
Merge pull request #3287 from alphagov/check-current-user-is_authenticated
Reorder the methods called in sign out
This commit is contained in:
@@ -154,10 +154,10 @@ class User(JSONModel, UserMixin):
|
||||
return True
|
||||
|
||||
def sign_out(self):
|
||||
# Update the db so the server also knows the user is logged out.
|
||||
session.clear()
|
||||
# Update the db so the server also knows the user is logged out.
|
||||
self.update(current_session_id=None)
|
||||
logout_user()
|
||||
return self.update(current_session_id=None)
|
||||
|
||||
@property
|
||||
def sms_auth(self):
|
||||
|
||||
Reference in New Issue
Block a user