{% extends "layout/base.html" %} {% load i18n %} {% load static %} {% block content %} {% if user.is_authenticated %}

{% trans "You are logged in." %}

{% if two_factor_enabled %}

{% translate 'Two factor authentication is enabled for your account.' %}

{% else %}

{% translate 'Two factor authentication is not enabled for your account. Enable it to continue.' %}

{% trans "Setup two factor authentication" %} {% endif %} {% else %}

{% translate 'Login' %}

{% csrf_token %}
{% if wizard.steps.current == 'auth' %} {% translate 'Credentials' %} {% elif wizard.steps.current == 'token' %}

{% translate 'Explanation' %}: {% translate 'Please enter the token generated by your token generator.' %}

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

{% translate 'Explanation' %}: {% 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 %} {% include 'partials/form/form_errors.html' %} {% include "two_factor/_wizard_forms.html" with step=wizard.steps.current %} {# hidden submit button to enable [enter] key #} {% if backup_tokens %}

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

{% endif %} {% include "two_factor/_wizard_actions.html" with step=wizard.steps.current %}
{% endif %} {% endblock %}