{% extends 'users/settings/base_settings.html' %} {% load allauth %} {% load crispy_forms_tags %} {% block content_settings %}
Authentication using an authenticator app is active.
{% else %}An authenticator app is not active.
{% endif %} {% url 'mfa_deactivate_totp' as deactivate_url %} {% url 'mfa_activate_totp' as activate_url %} {% if authenticators.totp %} Deactivate {% else %} Activate {% 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 %}There is {{ unused_count }} out of {{ total_count }} recovery codes available
{% else %}No recovery codes set up.
{% endif %} {% if is_mfa_enabled %} {% if authenticators.recovery_codes %} {% if unused_count > 0 %} {% url 'mfa_view_recovery_codes' as view_url %} View {% endif %} {% endif %} {% url 'mfa_generate_recovery_codes' as generate_url %} Generate {% endif %} {% endwith %} {% endif %}