{% extends "two_factor/_base.html" %} {% load i18n %} {% load two_factor_tags %} {% block extra_media %} {{ form.media }} {% endblock %} {% block content %}

{% block title %}{% trans "Login" %}{% endblock %}

{% if wizard.steps.current == 'auth' %}

{% blocktrans %}Enter your credentials.{% endblocktrans %}

{% elif wizard.steps.current == 'token' %}

{{ device|as_verbose_action }}

{% elif wizard.steps.current == 'backup' %}

{% blocktrans trimmed %}Use this form for entering backup tokens for logging in. These tokens have been generated for you to print and keep safe. Please enter one of these backup tokens to login to your account.{% endblocktrans %}

{% endif %}
{% csrf_token %} {% include "two_factor/_wizard_forms.html" %} {# hidden submit button to enable [enter] key #} {% if other_devices %}

{% trans "Or, alternatively, use one of your other authentication methods:" %}

{% for other in other_devices %} {% endfor %}

{% endif %} {% include "two_factor/_wizard_actions.html" %}
{% block 'backup_tokens' %} {% if backup_tokens %}
{% csrf_token %}

{% trans "As a last resort, you can use a backup token:" %}

{% endif %} {% endblock %}
{% endblock %} {% block theme_switcher %} {% endblock theme_switcher %}