mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-06-26 02:11:49 -04:00
@@ -146,6 +146,9 @@ def _do_login_dot_gov(): # $ pragma: no cover
|
||||
# return verify_email(user, redirect_url)
|
||||
|
||||
usr = User.from_email_address(user["email_address"])
|
||||
|
||||
# New users on the invite path need activation
|
||||
# if not usr.is_active:
|
||||
current_app.logger.info(f"activating user {usr.id} #notify-admin-1505")
|
||||
activate_user(usr.id)
|
||||
except BaseException as be: # noqa B036
|
||||
|
||||
@@ -27,7 +27,7 @@ def _sign_out_at_login_dot_gov():
|
||||
def sign_out():
|
||||
|
||||
if current_user.is_authenticated:
|
||||
current_user.deactivate()
|
||||
# current_user.deactivate()
|
||||
session.clear()
|
||||
current_user.sign_out()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user