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

Two-factor Authentication

Please enter your authentication code

{{ 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, value='submit code') }}
{{ two_factor_rescue_form.hidden_tag() }} {{ render_field_with_errors(two_factor_rescue_form.help_setup) }} {% if problem=='lost_device' %}

The code for authentication was sent to your email address

{% endif %} {% if problem=='no_mail_access' %}

A mail was sent to us in order to reset your application account

{% endif %} {{ render_field(two_factor_rescue_form.submit, value='submit') }}
{% include "security/_menu.html" %} {% endblock %}