{# _auth_main_mfa_setup.html — MFA setup form column. Renders
standalone for HTMX fragment responses. Expected context: csrf_token, totp_uri, secret, error, app_name, is_production #} {% import "_partials/_auth_macros.html" as auth %}
{{ auth.kicker(app_name, "Enable 2FA") }}

Enable 2FA

Scan the QR or enter the secret, then verify.

{{ totp_uri }}
Secret key: {{ secret }}
{% if error %} {% set flash = { "kind": "err", "message": error } %}
{% include "_partials/_flash.html" %}
{% endif %}

Back to settings