{# 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 g.auth.template or 'core/auth/base.html' %} {% import 'macro/form.html' as fui %} {% block script %} {% endblock %} {% block auth_subtitle %}
{{ _("Email verification code.") }}
{% endblock %} {% block auth_form_content %}
{% 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 %}
{{ form.otp(autofocus=True) }} {% endblock %} {% block auth_right_buttons %} {% call fui.render_button(form.action, "resend", id="resend-button", class_="ui disabled button" if resend_delay else "ui button", data_delay=resend_delay.total_seconds(), formnovalidate=True) %} {% trans %}Send another code{% endtrans %} {% endcall %} {% call fui.render_button(form.action, "confirm", class_="ui primary button") %} {{ _("Verify") }} {% endcall %} {% endblock %}