diff --git a/app/auth/templates/auth/fido.html b/app/auth/templates/auth/fido.html index 34d67078..35f8b257 100644 --- a/app/auth/templates/auth/fido.html +++ b/app/auth/templates/auth/fido.html @@ -28,11 +28,20 @@ {% if enable_otp %} -
+
+
Don't have your key with you?
Verify by One-Time Password
{% endif %} +
+ +
+ If you have troubles with your authentication app, you can use the recovery code to login.
+ Use Recovery Codes +
+ + {% endif %} - +
diff --git a/app/auth/templates/auth/mfa.html b/app/auth/templates/auth/mfa.html index 7746a0fe..064a8598 100644 --- a/app/auth/templates/auth/mfa.html +++ b/app/auth/templates/auth/mfa.html @@ -20,7 +20,7 @@
Token
-
Please enter the 6-digit number displayed in your MFA application +
Please enter the 6-digit number displayed in your MFA application (Google Authenticator, Authy, MyDigiPassword, etc) here
@@ -30,11 +30,20 @@ {% if enable_fido %} -
+
+
Having trouble with your authenticator?
Verify by your security key
{% endif %} + +
+
+ If you have troubles with your authentication app, you can use the recovery code to login.
+ Use Recovery Codes +
+ +
diff --git a/app/auth/views/fido.py b/app/auth/views/fido.py index ae1ba200..e85c895f 100644 --- a/app/auth/views/fido.py +++ b/app/auth/views/fido.py @@ -104,4 +104,5 @@ def fido(): webauthn_assertion_options=webauthn_assertion_options, enable_otp=user.enable_otp, auto_activate=auto_activate, + next_url=next_url ) diff --git a/app/auth/views/mfa.py b/app/auth/views/mfa.py index d34f22e2..979296c6 100644 --- a/app/auth/views/mfa.py +++ b/app/auth/views/mfa.py @@ -59,4 +59,5 @@ def mfa(): "auth/mfa.html", otp_token_form=otp_token_form, enable_fido=(user.fido_enabled()), + next_url=next_url )