{% extends "security/base.html" %} {% from "security/_macros.html" import render_field_with_errors, render_field, prop_next %} {% block content %} {% include "security/_messages.html" %}

{{ _fsdomain("Two-factor Authentication") }}

{{ _fsdomain("Please enter your authentication code generated via: %(method)s", method=chosen_method) }}

{{ 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) }}

{{ two_factor_rescue_form.hidden_tag() }} {{ render_field_with_errors(two_factor_rescue_form.help_setup) }} {% if problem=="email" %}
{{ _fsdomain("The code for authentication was sent to your email address") }}
{% endif %} {% if problem=="help" %}
{{ _fsdomain("A mail was sent to us in order to reset your application account") }}
{% endif %} {{ render_field(two_factor_rescue_form.submit) }}
{% include "security/_menu.html" %} {% endblock content %}