{% extends "registration/login.html" %} {% load i18n %} {% block main_content %}

{% trans "Two-Factor Authentication" %}

{% csrf_token %} {{ wizard.management_form }} {% if wizard.steps.current == 'token' %} {% if device.method == 'call' %}

We are calling your phone right now, please enter the digits you hear.

{% elif device.method == 'sms' %}

We sent you a text message, please enter the tokens we sent.

{% else %}

{% trans "Open the two-factor authentication app on your device to view your authentication token and verify your identify." %}

{% endif %} {% if form.errors %}

{% trans "Incorrect code" %}

{% else %}

{% endif %} {% if backup_tokens > 0 %} {% endif %} {% elif wizard.steps.current == 'backup' %} {% if form.errors %}

{% trans "Incorrect code" %}

{% else %}

{% endif %}

{% trans "You can enter one of your backup codes in case you lost access to your mobile device." %}

{% endif %}
{% endblock %} {% block extra_script %} {% endblock %}