{% extends "admin/base_site.html" %} {% load i18n djadmin %} {% block bodyclass %}{{ block.super }} mfa-setup{% endblock %} {% block breadcrumbs %} {% endblock %} {% block content %}
{% if mfa_required %}
{% dj_icon "shield" "dj-icon dj-icon--sm" %} {% translate 'Two-factor authentication is required for your account. Finish this setup to continue.' %}
{% endif %}

1{% translate 'Scan the code' %}

{% if qr %}
{{ qr }}
{% else %}
{% dj_icon "alert" "dj-icon dj-icon--sm" %} {% translate 'Install the optional “segno” package to show a QR code here. Meanwhile, add the key by hand.' %}
{% endif %}

{% translate 'Open your authenticator app (1Password, Google Authenticator, Aegis…) and scan.' %}

{% translate 'Can’t scan? Enter the key manually' %}

{{ secret_grouped }}

{% translate 'Type: time-based · 6 digits · 30 seconds' %}

2{% translate 'Confirm the code' %}

{% translate 'Type the six digits your app is showing right now. This proves the pairing works before we switch it on.' %}

{% csrf_token %}
{{ form.token.label_tag }}
{{ form.token }}
{{ form.token.errors }}
{% translate 'Cancel' %}
{% endblock %}