{% 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 "Authentication using an authenticator app is active." %}
{% else %}{% translate "An authenticator app is not active." %}
{% translate "Activate" %} {% endif %} {% endif %} {% if "webauthn" in MFA_SUPPORTED_TYPES %}{% 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 %}{% 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 %}