{% extends "common-content.html" %} {% block media %} {% endblock %} {% block content_js_media %} {% endblock %} {% block body %}
{% csrf_token %}
{{ _('Scan this code with your authenticator app:') }}
{{ _('QR code') }}
{{ _('Or enter this code manually:') }} {{ totp_key }}

{% if form.totp_or_scratch_code.errors or form.non_field_errors() %}
{{ form.totp_or_scratch_code.errors }} {{ form.non_field_errors() }}
{% endif %}
{{ form.totp_or_scratch_code }}
{% if scratch_codes %}
{{ scratch_codes|join('\n') }}
{% if is_hardcore %}
{{ _('Important:') }} {% trans trimmed site_name=SITE_NAME %} If you lose your authentication device and are unable to use your scratch codes, {{ site_name }} admins will NOT be able to recover your account. Please keep your scratch codes safe! {% endtrans %}
{% endif %} {% endif %}
{% endblock %}