{% load static vantage i18n %} {% comment %} The second sign-in step. One template for both ways of arriving: * from the panel's own sign-in, after the password and before login() — the session is still anonymous, and "start again" goes back to the password; * from the gate, for a session signed in through some other login view — the session is signed in but may not see the panel, and the way out is to sign out. Standalone, like the sign-in page, because a sidebar here would be a column of links that all lead straight back to this form. {% endcomment %} {% blocktranslate with site_title=settings.SITE_TITLE %}Authentication code · {{ site_title }}{% endblocktranslate %} {% if settings.FAVICON %}{% endif %} {{ no_flash_script|safe }} {{ theme_css|safe }} {% if settings.CUSTOM_CSS %}{% endif %}
{% include "vantage/partials/brand.html" with mark_class="v-auth-mark" %}

{% translate "Two-factor sign-in" %}

{% if locked %} {% elif form %}

{% translate "Open the authenticator app on your phone and enter the code it shows for this site." %}

{% if form.non_field_errors %} {% endif %}
{% csrf_token %} {% for field in form %}
{{ field }} {% if field.help_text %}

{{ field.help_text }}

{% endif %} {% if field.errors %} {% endif %}
{% endfor %} {% if next %}{% endif %}
{% endif %}

{% if signed_in %} {% url 'logout' as logout_url %} {% if logout_url %}

{% csrf_token %}
{% endif %} {% else %} {% translate "Start again with your password" %} {% endif %}