mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-02 17:48:50 -04:00
allow password reset with webauthn login flow
This commit is contained in:
@@ -45,7 +45,7 @@ def new_password(token):
|
||||
# they've just clicked an email link, so have done an email auth journey anyway. Just log them in.
|
||||
return log_in_user(user.id)
|
||||
elif user.webauthn_auth:
|
||||
raise NotImplementedError('webauthn not supported yet')
|
||||
return redirect(url_for('main.two_factor_webauthn', next=request.args.get('next')))
|
||||
else:
|
||||
# send user a 2fa sms code
|
||||
user.send_verify_code()
|
||||
|
||||
Reference in New Issue
Block a user