allow password reset with webauthn login flow

This commit is contained in:
Leo Hemsted
2021-05-27 12:58:42 +01:00
parent 6a21915cee
commit a3870af87d
2 changed files with 27 additions and 1 deletions

View File

@@ -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()