{% extends "mfa/base_manage.html" %}{% load i18n allauth %} {% block head_title %}{% trans "Two-Factor Authentication" %}{% endblock %} {% block content %}

{% trans "Two-Factor Authentication" %}

{% if "totp" in MFA_SUPPORTED_TYPES %}

{% trans "Authenticator App" %}

{% if authenticators.totp %}

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

{% trans "Deactivate" %} {% else %}

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

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

{% trans "Security Keys" %}

{% if authenticators.webauthn|length %}

{% blocktrans count count=authenticators.webauthn|length trimmed %}You have added {{ count }} security key.{% plural %} You have added {{ count }} security keys.{% endblocktrans %}

{% trans "Manage" %} {% else %}

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

{% trans "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 %}

{% trans "Recovery Codes" %}

{% if authenticators.recovery_codes %}

{% blocktrans count unused_count=unused_count trimmed %}There is {{ unused_count }} out of {{ total_count }} recovery codes available. {% plural %}There are {{ unused_count }} out of {{ total_count }} recovery codes available.{% endblocktrans %}

{% else %}

{% trans "No recovery codes set up." %}

{% endif %} {% if is_mfa_enabled %} {% if authenticators.recovery_codes %} {% if unused_count > 0 %} {% trans "View" %} {% trans "Download" %} {% endif %} {% endif %} {% trans "Download" %} {% endif %}
{% endwith %} {% endif %}
{% endblock %}