mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 21:49:37 -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
|
return True
|
||||||
|
|
||||||
def sign_out(self):
|
def sign_out(self):
|
||||||
# Update the db so the server also knows the user is logged out.
|
|
||||||
session.clear()
|
session.clear()
|
||||||
|
# Update the db so the server also knows the user is logged out.
|
||||||
|
self.update(current_session_id=None)
|
||||||
logout_user()
|
logout_user()
|
||||||
return self.update(current_session_id=None)
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def sms_auth(self):
|
def sms_auth(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user