{% extends "base.html" %} {% load i18n two_factor %} {% block content %}

{% trans "Login" %}

{% if user.is_authenticated %}
You are already authenticated.
{% else %} {% if wizard.steps.current == 'auth' %}

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

{% 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 tokens we sent.{% endblocktrans %}
{% else %}
{% blocktrans %}Please enter the tokens generated by your token 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 %} {{ wizard.management_form }} {% include "bulma_form.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 "mfa/_wizard_actions.html" %}

{% trans "Forgot your password?" %} {% trans "Reset it" %}.

{% trans "Not a member?" %} {% trans "Register" %}.

{% endif %} {% endblock %}