2019-12-27 15:34:10 +01:00
|
|
|
{% extends "single.html" %}
|
|
|
|
|
2022-06-29 11:28:26 +02:00
|
|
|
{% block title %}MFA{% endblock %}
|
2019-12-27 15:34:10 +01:00
|
|
|
{% block single_content %}
|
2022-06-29 11:28:26 +02:00
|
|
|
|
2020-05-11 23:22:06 +02:00
|
|
|
<div class="card">
|
|
|
|
<div class="card-body p-6">
|
|
|
|
<div class="mb-2">
|
2022-06-29 11:28:26 +02:00
|
|
|
Your account is protected with Two Factor Authentication.
|
|
|
|
<br />
|
|
|
|
<br />
|
2020-05-27 20:49:13 +02:00
|
|
|
You will need to enter your 2FA authentication code.
|
2019-12-27 15:34:10 +01:00
|
|
|
</div>
|
2020-05-11 23:22:06 +02:00
|
|
|
<form method="post">
|
|
|
|
{{ otp_token_form.csrf_token }}
|
2022-06-29 11:28:26 +02:00
|
|
|
<input type="hidden" name="form-name" value="create" />
|
2020-05-11 23:22:06 +02:00
|
|
|
<div class="font-weight-bold mt-5">Token</div>
|
2024-01-02 13:20:48 +01:00
|
|
|
<div class="small-text mb-3">Please enter the 2FA code from your authenticator app</div>
|
2020-05-11 23:22:06 +02:00
|
|
|
{{ otp_token_form.token(class="form-control", autofocus="true") }}
|
|
|
|
{{ render_field_errors(otp_token_form.token) }}
|
2020-05-22 16:14:52 +02:00
|
|
|
<div class="form-check">
|
|
|
|
{{ otp_token_form.remember(class="form-check-input", id="remember") }}
|
2022-06-29 11:28:26 +02:00
|
|
|
<label class="form-check-label" for="remember">{{ otp_token_form.remember.description }}</label>
|
2020-05-22 16:14:52 +02:00
|
|
|
</div>
|
2020-05-27 20:49:13 +02:00
|
|
|
<button class="btn btn-success mt-2">Submit</button>
|
2020-05-11 23:22:06 +02:00
|
|
|
</form>
|
|
|
|
{% if enable_fido %}
|
2022-06-29 11:28:26 +02:00
|
|
|
|
|
|
|
<hr />
|
2020-05-17 10:27:20 +02:00
|
|
|
<div class="text-muted mt-5" style="margin-top: 1em;">
|
2022-06-29 11:28:26 +02:00
|
|
|
Having trouble with your authenticator?
|
|
|
|
<br />
|
|
|
|
<a href="{{ url_for('auth.fido') }}">
|
|
|
|
Verify by your security
|
|
|
|
key
|
|
|
|
</a>
|
2020-05-11 23:22:06 +02:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
2022-06-29 11:28:26 +02:00
|
|
|
<hr />
|
2020-05-17 10:27:20 +02:00
|
|
|
<div class="mt-5">
|
2022-06-29 11:28:26 +02:00
|
|
|
If you cannot access your authenticator application you can instead use a recovery code.
|
|
|
|
<br />
|
2020-05-27 20:49:13 +02:00
|
|
|
<a href="{{ url_for('auth.recovery_route', next=next_url) }}">Use Recovery Code</a>
|
2020-05-17 10:27:20 +02:00
|
|
|
</div>
|
2020-05-11 23:22:06 +02:00
|
|
|
</div>
|
2019-12-27 15:34:10 +01:00
|
|
|
</div>
|
2020-05-27 20:49:13 +02:00
|
|
|
{% endblock %}
|