app-MAIL-temp/app/auth/templates/auth/mfa.html

41 lines
1.2 KiB
HTML
Raw Normal View History

{% extends "single.html" %}
{% block title %}
MFA
{% endblock %}
{% block single_content %}
2020-05-11 23:22:06 +02:00
<div class="card">
<div class="card-body p-6">
2019-12-30 10:36:13 +01:00
2020-05-11 23:22:06 +02:00
<div class="mb-2">
Your account is protected with multi-factor authentication (MFA). <br><br>
To continue with the sign-in you need to provide the access code from your authenticator.
</div>
2020-05-11 23:22:06 +02:00
<form method="post">
{{ otp_token_form.csrf_token }}
<input type="hidden" name="form-name" value="create">
<div class="font-weight-bold mt-5">Token</div>
<div class="small-text">Please enter the 6-digit number displayed in your MFA application
(Google Authenticator, Authy, MyDigiPassword, etc) here
</div>
{{ otp_token_form.token(class="form-control", autofocus="true") }}
{{ render_field_errors(otp_token_form.token) }}
<button class="btn btn-success mt-2">Validate</button>
</form>
{% if enable_fido %}
<div class="text-center text-muted mb-6" style="margin-top: 1em;">
Having trouble with your authenticator? <br> <a href="{{ url_for('auth.fido') }}">Verify by your security
key</a>
</div>
{% endif %}
</div>
</div>
{% endblock %}