{% extends "mfa/base_manage.html" %} {% load blocktrans trans from i18n %} {% load crispy from crispy_forms_tags %} {% block edit_content_subheader %} {% endblock edit_content_subheader %} {% block edit_content %} {% block mfa_totp %} {% if "totp" in MFA_SUPPORTED_TYPES %} {% if not authenticators.totp %} {# Placeholder section onboarding users to TOTP #}
{% trans "Set up two-factor authentication" %} {% trans "Activate to use a two-factor authenticator app or browser extension to protect your account." %}
{% url 'mfa_activate_totp' as activate_url %} {% trans "Activate" %}
{% else %}

{% blocktrans trimmed %} Two-factor authentication using an authenticator app is enabled. {% endblocktrans %}

{% trans "Deactivate" %}
{% endif %} {% endif %} {% endblock mfa_totp %} {% block mfa_webauthn %} {# TODO if we end up supporting this in the future, this section will need ported #} {% endblock mfa_webauthn %} {% block mfa_recovery %} {# Skip placeholder segment, only show this section if recovery codes were previously generated #} {% if "recovery_codes" in MFA_SUPPORTED_TYPES and authenticators.recovery_codes %}

{% trans "Recovery codes" %}

{% blocktrans trimmed %} Recovery codes are one-time use codes that can be used as backup two-factor authentication codes. {% endblocktrans %}

{% url 'mfa_view_recovery_codes' as view_url %} {% trans "Manage recovery codes" %} {% endif %} {% endblock mfa_recovery %} {% endblock edit_content %}