{% extends "mfa/index.html" %} {% load i18n %} {% load allauth_ui %} {% block content %} {% trans "Two-Factor Authentication" as heading %} {% #container heading=heading %} {% if "totp" in MFA_SUPPORTED_TYPES %}

{% translate "Authenticator App" %}

{% if authenticators.totp %}

{% translate "Authentication using an authenticator app is active." %}

{% translate "Deactivate" %}

{% else %}

{% translate "An authenticator app is not active." %}

{% translate "Activate" %} {% endif %} {% endif %} {% if "webauthn" in MFA_SUPPORTED_TYPES %}

{% translate "Security Keys" %}

{% if authenticators.webauthn|length %}

{% blocktranslate count count=authenticators.webauthn|length %}You have added {{ count }} security key.{% plural %}You have added {{ count }} security keys.{% endblocktranslate %}

{% translate "Manage" %} {% else %}

{% translate "No security keys have been added." %}

{% translate "Add" %} {% endif %} {% endif %} {% if "recovery_codes" in MFA_SUPPORTED_TYPES %}
{% with total_count=authenticators.recovery_codes.generate_codes|length unused_count=authenticators.recovery_codes.get_unused_codes|length %}

{% translate "Recovery Codes" %}

{% if authenticators.recovery_codes %} {% blocktranslate count unused_count=unused_count %}There is {{ unused_count }} out of {{ total_count }} recovery codes available.{% plural %}There are {{ unused_count }} out of {{ total_count }} recovery codes available.{% endblocktranslate %} {% else %} {% translate "No recovery codes set up." %} {% endif %}

{% if is_mfa_enabled %}
{% if authenticators.recovery_codes %} {% if unused_count > 0 %} {% translate "View" %} {% translate "Download" %} {% endif %} {% endif %} {% translate "Generate" %}
{% endif %} {% endwith %} {% endif %} {% /container %} {% endblock content %}