mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-11 10:28:41 -04:00
Fix bug with send_verify_code not including the to field.
This commit is contained in:
@@ -27,7 +27,7 @@ def sign_in():
|
||||
if user.state == 'pending':
|
||||
return redirect(url_for('.verify'))
|
||||
elif user.is_active():
|
||||
users_dao.send_verify_code(user.id, 'sms')
|
||||
users_dao.send_verify_code(user.id, 'sms', user.mobile_number)
|
||||
return redirect(url_for('.two_factor'))
|
||||
# Vague error message for login in case of user not known, locked, inactive or password not verified
|
||||
flash('Username or password is incorrect')
|
||||
|
||||
Reference in New Issue
Block a user