mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-07 11:28:25 -04:00
code review feedback
This commit is contained in:
@@ -25,14 +25,10 @@ def _sign_out_at_login_dot_gov():
|
|||||||
|
|
||||||
@main.route("/sign-out", methods=(["GET", "POST"]))
|
@main.route("/sign-out", methods=(["GET", "POST"]))
|
||||||
def sign_out():
|
def sign_out():
|
||||||
# An AnonymousUser does not have an id
|
|
||||||
|
|
||||||
if current_user.is_authenticated:
|
if current_user.is_authenticated:
|
||||||
# TODO This doesn't work yet, due to problems above.
|
|
||||||
current_user.deactivate()
|
current_user.deactivate()
|
||||||
|
|
||||||
session.clear()
|
session.clear()
|
||||||
|
|
||||||
current_user.sign_out()
|
current_user.sign_out()
|
||||||
|
|
||||||
session.permanent = False
|
session.permanent = False
|
||||||
|
|||||||
Reference in New Issue
Block a user