mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 13:39:41 -04:00
Updated code used flow
This commit is contained in:
@@ -56,8 +56,9 @@ def two_factor_email(token):
|
||||
logged_in, msg = user_api_client.check_verify_code(user_id, token_data['secret_code'], "email")
|
||||
|
||||
if not logged_in:
|
||||
flash("There’s something wrong with the code")
|
||||
return redirect(url_for('.two_factor_email_sent'))
|
||||
flash("This link has already been used")
|
||||
session['user_details'] = {'id': user_id}
|
||||
return redirect(url_for('.resend_email_link'))
|
||||
return log_in_user(user_id)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user