{% extends "wagtailadmin/base.html" %} {% load i18n wagtailadmin_tags %} {% block titletag %} {% translate "Add a new device for 2 factor authentication" %} {% endblock %} {% block content %} {% translate "Secure your account" as prefs_str %} {% include "wagtailadmin/shared/header.html" with title=prefs_str %}

{% translate "To better protect your account, you will be asked for a security code in addition to your password when you log in." %}

{% translate "This code is generated by an app on your phone and changes every 30 seconds." %}

{% translate "You can use, for example:" %}

{% if not form.instance.confirmed %}

{% translate "To activate this option:" %}

  1. {% translate "Install an authenticator app on your phone." %}
  2. {% translate "Scan the QR code below." %}
  3. {% translate "Enter the code displayed in the app." %}

{% translate "Important:" %} {% translate "If you lose your phone, you may no longer be able to access your account." %}

{% endif %}
{% if form.email_code_unavailable %}

{% translate "Your password can't be used to confirm this operation, and no confirmation code can be sent by email: the site doesn't send emails, or your account has no email address. Please contact the site administrator." %}

{% endif %} {% if "email_code" in form.fields %} {# Separate form, submitted by the button next to the email code field (form attribute): #} {# pressing Enter in the main form doesn't send a new code #}
{% csrf_token %}
{% endif %}
{% csrf_token %} {% for error in form.non_field_errors %}

{{ error }}

{% endfor %}
{% endblock %}