{% extends "admin/base_site.html" %} {% load i18n static %} {% block title %}Setup Two-Factor Authentication{% endblock %} {% block extrahead %} {% endblock %} {% block content %}

Setup Two-Factor Authentication

Security Notice: Two-factor authentication is required for admin access. Please choose a 2FA method to continue.
{% if totp_available or passkey_available %}

To access the admin panel, you must set up two-factor authentication. Choose one of the following methods:

{% else %}

No 2FA enrollment methods are enabled. Ask an administrator to set LOKDOWN_TOTP_ENABLED or LOKDOWN_PASSKEY_ENABLED in project settings.

{% endif %}
{% csrf_token %} {% if totp_available %}

📱 Authenticator App (TOTP)

Use an authenticator app like Google Authenticator, Authy, or Microsoft Authenticator. This is the most common and secure method.

{% endif %} {% if passkey_available %}

🔑 Passkey (WebAuthn)

Use a passkey with your device's built-in security (fingerprint, face ID, or PIN). Works with YubiKeys, Apple Passwords, Google Password Manager, and more.

{% endif %}
{% endblock %}