{% extends "base.html" %} {% load i18n %} {% block head_title %}Security Settings{% endblock %} {% block content %}

Security Settings

Manage your passkeys, authenticator apps, and recovery codes.

{% if "webauthn" in MFA_SUPPORTED_TYPES %}

Passkeys & Security Keys

Sign in with biometrics or a hardware key — no password needed.

{% with webauthn_list=authenticators.webauthn %} {% if webauthn_list %}

You have {{ webauthn_list|length }} security key{{ webauthn_list|length|pluralize }} registered.

{% else %}

No passkeys registered yet.

Add a passkey to sign in with Face ID, Touch ID, or a hardware security key.

{% endif %} {% endwith %}
{% endif %} {% if "totp" in MFA_SUPPORTED_TYPES %}

Authenticator App (TOTP)

Use apps like Google Authenticator, Authy, or 1Password.

{% if authenticators.totp %}

Active — An authenticator app is protecting your account.

Deactivate {% else %}

No authenticator app configured.

Set Up Authenticator App {% 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 %}

Recovery Codes

Backup codes you can use if you lose access to your other 2FA methods.

{% if authenticators.recovery_codes %}

{% if unused_count > 0 %} {{ unused_count }} of {{ total_count }} codes remaining. {% else %} All recovery codes have been used. Generate new ones below. {% endif %}

{% if unused_count > 0 and not MFA_RECOVERY_CODES_SHOW_ONCE %} View Codes Download {% endif %} Regenerate
{% else %}

{% if is_mfa_enabled %} No recovery codes generated. Generate some now so you don't get locked out. {% else %} Recovery codes become available once you have at least one 2FA method enabled. {% endif %}

{% if is_mfa_enabled %} Generate Recovery Codes {% endif %} {% endif %}
{% endwith %} {% endif %}
{% endblock %}