mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-11 09:28:27 -04:00
- Add test to check that two-factor auth activates a user as expected
- Ensure DB user activation statusupdate only executed when required - Fix test_should_activate_user_after_verify
This commit is contained in:
@@ -26,6 +26,7 @@ def two_factor():
|
||||
if form.validate_on_submit():
|
||||
try:
|
||||
user = user_api_client.get_user(user_id)
|
||||
|
||||
services = service_api_client.get_services({'user_id': str(user_id)}).get('data', [])
|
||||
# Check if coming from new password page
|
||||
if 'password' in session['user_details']:
|
||||
|
||||
Reference in New Issue
Block a user