{% extends "mfa/base_manage.html" %} {% load i18n %} {% block title %} {% trans "Two-Factor Authentication" %} {% endblock title %} {% block page.breadcrumbs %} {{ block.super }} {% endblock page.breadcrumbs %} {% block page.content %} {% if "totp" in MFA_SUPPORTED_TYPES %} {% if authenticators.totp %}

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

{% else %}

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

{% endif %}
{% endif %} {% if "recovery_codes" in MFA_SUPPORTED_TYPES %} {% if authenticators.recovery_codes %}

{% blocktrans with unused=authenticators.recovery_codes.get_unused_codes|length total=authenticators.recovery_codes.generate_codes|length %}{{ unused }} of {{ total }} recovery codes remaining.{% endblocktrans %}

{% else %}

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

{% endif %} {% if is_mfa_enabled and authenticators.recovery_codes %} {% endif %}
{% endif %} {% if "webauthn" in MFA_SUPPORTED_TYPES %} {% with count=authenticators.webauthn|length %} {% if count %}

{% blocktrans count counter=count %}{{ counter }} security key registered.{% plural %}{{ counter }} security keys registered.{% endblocktrans %}

{% else %}

{% trans "No security keys registered." %}

{% endif %} {% endwith %}
{% endif %} {% endblock page.content %}