{# -*- engine:django -*- #} {% extends "two_factor/_base_focus.html" %} {% load i18n phonenumber account socialaccount two_factor_tags %} {% block browser_title %} {% trans "Login" %} {% endblock %} {% block extra_head %} {{ wizard.form.media.css }} {% endblock %} {% block content %} {% get_providers as socialaccount_providers %}
{% csrf_token %}
{% if oauth and oauth_application.icon %}
{{ oauth_application.name }}
{% blocktrans with name=oauth_application.name %}Login for {{ name }}{% endblocktrans %}
{% elif wizard.steps.current == 'auth' and socialaccount_providers %}
{% trans "Login with username and password" %}
{% else %}
{% trans "Login" %}
{% endif %} {% if wizard.steps.current == "auth" and user.is_authenticated %}

warning {% blocktrans %}You have no permission to view this page. Please login with an other account.{% endblocktrans %}

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

info {% blocktrans %}Please login with your account to use the external application.{% endblocktrans %}

{% else %}

info {% blocktrans %}Please login to see this page.{% endblocktrans %}

{% endif %} {% endif %} {% if not wizard.steps.current == "auth" %}

info {% if 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 code we sent. {% endblocktrans %} {% elif device.method == 'email' %} {% blocktrans %} We sent you an email, please enter the code we sent. {% endblocktrans %} {% elif device.method == 'webauthn' %} {% blocktrans %} Please use your Webauthn-compatible device to authenticate. {% endblocktrans %} {% else %} {% blocktrans %} Please enter the code generated by your code 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 %}

{% endif %} {% include "two_factor/_wizard_forms.html" %}
{% if other_devices or backup_tokens %}
{% trans "Device currently not available?" %}
{% if other_devices %}

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

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

{% endif %} {% if backup_tokens %}

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

{% endif %}
{% endif %}
{% if wizard.steps.current == 'auth' and socialaccount_providers %}
{% trans "Use alternative login options" %}
{% include "socialaccount/snippets/provider_list.html" with process="login" %}
{% endif %}
{{ wizard.form.media.js }} {% endblock %}