mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 05:29:38 -04:00
In case user details were not in session the redirect did not use
url_for to redirect to sign in.
This commit is contained in:
@@ -19,7 +19,7 @@ def two_factor():
|
||||
try:
|
||||
user_id = session['user_details']['id']
|
||||
except KeyError:
|
||||
return redirect('main.sign_in')
|
||||
return redirect(url_for('main.sign_in'))
|
||||
|
||||
def _check_code(code):
|
||||
return user_api_client.check_verify_code(user_id, code, "sms")
|
||||
|
||||
Reference in New Issue
Block a user