{% extends "base.html" %} {% block media %} {% endblock %} {% block js_media %} {% endblock %} {% block body %}
{% csrf_token %} {% if form.errors %}

{%- if form.errors['totp_token'] -%} {{ ' '.join(form.errors['totp_token']) }} {%- else -%} {{ ' '.join(form.non_field_errors()) }} {%- endif -%}

{% endif %} {% if request.profile.is_totp_enabled or request.profile.scratch_codes %}
{{ form.totp_or_scratch_code }}

{% endif %} {% if request.profile.is_webauthn_enabled %} {{ form.webauthn_response }} {% endif %} {% if request.profile.is_totp_enabled %} {% elif request.profile.scratch_codes %} {% endif %}
{% if not is_hardcore %}

{{ _('If you lost your authentication device and are unable to use your scratch codes, please contact us at %(email)s.', email=SITE_ADMIN_EMAIL)|urlize }}

{% endif %}
{% endblock %}