2019-12-27 14:34:10 +00:00
|
|
|
{% extends "single.html" %}
|
|
|
|
|
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
MFA
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
|
|
{% block single_content %}
|
2020-05-11 21:22:06 +00:00
|
|
|
<div class="card">
|
|
|
|
<div class="card-body p-6">
|
2019-12-30 09:36:13 +00:00
|
|
|
|
2020-05-11 21:22:06 +00: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.
|
2019-12-27 14:34:10 +00:00
|
|
|
</div>
|
|
|
|
|
2020-05-11 21:22:06 +00: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>
|
2020-05-17 08:27:20 +00:00
|
|
|
<div class="small-text mb-3">Please enter the 6-digit number displayed in your MFA application
|
2020-05-11 21:22:06 +00:00
|
|
|
(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 %}
|
2020-05-17 08:27:20 +00:00
|
|
|
<hr>
|
|
|
|
<div class="text-muted mt-5" style="margin-top: 1em;">
|
2020-05-11 21:22:06 +00:00
|
|
|
Having trouble with your authenticator? <br> <a href="{{ url_for('auth.fido') }}">Verify by your security
|
|
|
|
key</a>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2020-05-17 08:27:20 +00:00
|
|
|
|
|
|
|
<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>
|
|
|
|
|
|
|
|
|
2020-05-11 21:22:06 +00:00
|
|
|
</div>
|
2019-12-27 14:34:10 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endblock %}
|