{% set title = title|default(_fsdomain("Two-Factor Authentication")) %} {% extends "security/base.html" %} {% from "security/_macros.html" import render_field_with_errors, render_field, prop_next, render_csrf %} {% block content %} {% include "security/_messages.html" %}

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

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

{# chosen_method is translated string #}
{{ two_factor_verify_code_form.hidden_tag() }} {{ render_field_with_errors(two_factor_verify_code_form.code, placeholder=_fsdomain("enter numeric code")) }} {{ render_field(two_factor_verify_code_form.submit) }}
{% if two_factor_rescue_form %}
{# explicitly render csrf_token so we can change the ID so we don't get duplicates #} {{ render_csrf(two_factor_rescue_form, "rescue") }} {{ 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("An email was sent to us in order to reset your application account") }}
{% endif %} {{ render_field(two_factor_rescue_form.submit) }}
{% endif %} {% include "security/_menu.html" %} {% endblock content %}