mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-05 14:11:41 -04:00
Fix issue where exception thrown when user does not activate email but successfully completes forgotten-password flow (which includes 2f)
This commit is contained in:
@@ -54,6 +54,7 @@ def user_has_permissions(*permissions, admin_override=False, any_=False):
|
||||
def redirect_to_sign_in(f):
|
||||
@wraps(f)
|
||||
def wrapped(*args, **kwargs):
|
||||
import pdb; pdb.set_trace()
|
||||
if 'user_details' not in session:
|
||||
return redirect(url_for('main.sign_in'))
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user