eventcally/templates/security/two_factor_verify_code.html
Daniel Grams 818a4291f9 layout
2020-06-07 15:00:09 +02:00

27 lines
1.2 KiB
HTML

{% extends "layout.html" %}
{% from "_macros.html" import render_field_with_errors, render_field %}
{% block content %}
<h1>{{ _("Two-factor Authentication") }}</h1>
<h2>{{ _("Please enter your authentication code") }}</h2>
<form action="{{ url_for_security("two_factor_token_validation") }}" method="POST"
name="two_factor_verify_code_form">
{{ two_factor_verify_code_form.hidden_tag() }}
{{ render_field_with_errors(two_factor_verify_code_form.code, placeholder="enter code") }}
{{ render_field(two_factor_verify_code_form.submit) }}
</form>
<form action="{{ url_for_security("two_factor_rescue") }}" method="POST" name="two_factor_rescue_form">
{{ two_factor_rescue_form.hidden_tag() }}
{{ render_field_with_errors(two_factor_rescue_form.help_setup) }}
{% if problem=="lost_device" %}
<p>{{ _("The code for authentication was sent to your email address") }}</p>
{% endif %}
{% if problem=="no_mail_access" %}
<p>{{ _("A mail was sent to us in order to reset your application account") }}</p>
{% endif %}
{{ render_field(two_factor_rescue_form.submit) }}
</form>
{% endblock %}