mirror of
https://github.com/simple-login/app.git
synced 2024-09-29 21:21:29 +02:00
display recovery code options on mfa and fido page
This commit is contained in:
parent
da4e0bf384
commit
2e208ed505
@ -28,11 +28,20 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if enable_otp %}
|
{% if enable_otp %}
|
||||||
<div class="text-center text-muted mb-6" style="margin-top: 1em;">
|
<hr>
|
||||||
|
<div class="text-muted mt-5" style="margin-top: 1em;">
|
||||||
Don't have your key with you? <br> <a href="{{ url_for('auth.mfa') }}">Verify by One-Time Password</a>
|
Don't have your key with you? <br> <a href="{{ url_for('auth.mfa') }}">Verify by One-Time Password</a>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
|
||||||
|
<div class="mt-5">
|
||||||
|
If you have troubles with your authentication app, you can use the recovery code to login. <br>
|
||||||
|
<a href="{{ url_for('auth.recovery_route', next=next_url) }}">Use Recovery Codes</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
async function verifyKey() {
|
async function verifyKey() {
|
||||||
$("#btnVerifyKey").prop('disabled', true);
|
$("#btnVerifyKey").prop('disabled', true);
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
<input type="hidden" name="form-name" value="create">
|
<input type="hidden" name="form-name" value="create">
|
||||||
|
|
||||||
<div class="font-weight-bold mt-5">Token</div>
|
<div class="font-weight-bold mt-5">Token</div>
|
||||||
<div class="small-text">Please enter the 6-digit number displayed in your MFA application
|
<div class="small-text mb-3">Please enter the 6-digit number displayed in your MFA application
|
||||||
(Google Authenticator, Authy, MyDigiPassword, etc) here
|
(Google Authenticator, Authy, MyDigiPassword, etc) here
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -30,11 +30,20 @@
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
{% if enable_fido %}
|
{% if enable_fido %}
|
||||||
<div class="text-center text-muted mb-6" style="margin-top: 1em;">
|
<hr>
|
||||||
|
<div class="text-muted mt-5" style="margin-top: 1em;">
|
||||||
Having trouble with your authenticator? <br> <a href="{{ url_for('auth.fido') }}">Verify by your security
|
Having trouble with your authenticator? <br> <a href="{{ url_for('auth.fido') }}">Verify by your security
|
||||||
key</a>
|
key</a>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
<div class="mt-5">
|
||||||
|
If you have troubles with your authentication app, you can use the recovery code to login. <br>
|
||||||
|
<a href="{{ url_for('auth.recovery_route', next=next_url) }}">Use Recovery Codes</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -104,4 +104,5 @@ def fido():
|
|||||||
webauthn_assertion_options=webauthn_assertion_options,
|
webauthn_assertion_options=webauthn_assertion_options,
|
||||||
enable_otp=user.enable_otp,
|
enable_otp=user.enable_otp,
|
||||||
auto_activate=auto_activate,
|
auto_activate=auto_activate,
|
||||||
|
next_url=next_url
|
||||||
)
|
)
|
||||||
|
@ -59,4 +59,5 @@ def mfa():
|
|||||||
"auth/mfa.html",
|
"auth/mfa.html",
|
||||||
otp_token_form=otp_token_form,
|
otp_token_form=otp_token_form,
|
||||||
enable_fido=(user.fido_enabled()),
|
enable_fido=(user.fido_enabled()),
|
||||||
|
next_url=next_url
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user