{% extends "two_factor/_base_focus.html" %} {% load i18n two_factor %} {% load notifications %} {% block header %} {% if user.is_authenticated and not next %} {% endif %} {% endblock %} {% block content %}

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

{% getNotifications True %} {% if wizard.steps.current == 'auth' %} {% if user.is_authenticated %}
Your account doesn't have access to this page. To proceed, please login with an account that has access.
{% else %}
Please login to see this page.
{% endif %} {% elif wizard.steps.current == 'token' %}
{% if device.method == 'call' %} {% blocktrans %}We are calling your phone right now, please enter the digits you hear.{% endblocktrans %} {% elif device.method == 'sms' %} {% blocktrans %}We sent you a text message. Please enter the token we included.{% endblocktrans %} {% else %} {% blocktrans %}Please enter the token displayed by your generator. {% endblocktrans %} {% endif %}
{% elif wizard.steps.current == 'backup' %}
{% blocktrans %}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 backup phones:" %}

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

{% endif %} {% if backup_tokens %}

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

{% endif %} {% include "two_factor/_wizard_actions.html" %}

Lost password?

{% endblock %}