{% set title = title|default(_("Two-Factor Authentication")) %} {% import 'macros/forms.html' as forms with context %} {% block content %}

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

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

{# chosen_method is translated string #}
{{ two_factor_verify_code_form.hidden_tag() }} {{ forms.field(two_factor_verify_code_form.code) }} {{ forms.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 #} {{ forms.field(two_factor_rescue_form.help_setup) }} {% if problem=="email" %}
{{ _("The code for authentication was sent to your email address") }}
{% endif %} {% if problem=="help" %}
{{ _("An email was sent to us in order to reset your application account") }}
{% endif %} {{ forms.field(two_factor_rescue_form.submit) }}
{% endif %} {% endblock content %}