{% extends "mfa/authenticate.html" %} {% load allauth %} {% load allauth_ui %} {% load i18n %} {% block content %} {% trans "Two-Factor Authentication" as heading %} {% blocktranslate asvar subheading %}Your account is protected by two-factor authentication. Please enter an authenticator code:{% endblocktranslate %} {% url 'mfa_authenticate' as action_url %} {% #container heading=heading subheading=subheading %} {% translate "Activate" as button_text %} {% trans "Sign In" as button_text %} {% #form form=form url=action_url button_text=button_text %} {% csrf_token %} {% /form %} {% if "webauthn" in MFA_SUPPORTED_TYPES %}

{% translate "Alternative options" %}

{% #form form=webauthn_form url=action_url use_default_button="false" %} {% trans "Cancel" %} {% csrf_token %} {% /form %} {% endif %} {% /container %} {{ js_data|json_script:"js_data" }} {% include "mfa/webauthn/snippets/scripts.html" %} {# djlint:off #} {# djlint:on #} {% endblock content %}