{# The multi-factor authentication code verification template. Displays a form that asks for the multi-factor authentication code. :param form: The code verification form. :type form: :class:`~canaille.core.endpoints.forms.TwoFactorForm` #} {% extends theme('base.html') %} {% import 'macro/flask.html' as flask %} {% import 'macro/form.html' as fui %} {% import 'core/partial/login_field.html' as login_field %} {% block script %} {% endblock %} {% block container %}
{% block header %} {% if logo_url %} {{ website_name }} {% else %} {% endif %}

{{ _("Sign in as %(username)s", username=g.auth.user_name) }}
{% trans %}Email verification code.{% endtrans %}

{% endblock %} {% block messages %} {{ flask.messages() }} {% endblock %} {% call fui.render_form(form, hx_boost="false") %}
{% trans %}Check your mailbox{% endtrans %}
{% trans %} If the login you filled exists, an email containing a verification code has been sent to your mail address. Please fill the code in the following form to continue. {% endtrans %}
{% block fields %} {{ login_field.render_field(form.otp, class="autofocus") }} {% endblock %} {% block buttons %}
{% endblock %} {% endcall %}
{% endblock %}