{# pages/2fa/setup.html — 2FA setup with QR code #} {% extends "base.html" %} {% block title %}Two-Factor Authentication — {{ title | default("Admin") }}{% endblock %} {% block breadcrumb %} {{ super() }} / Profile / Two-Factor Authentication {% endblock %} {% block content %}
{% if error %}
{{ error }}
{% endif %} {% if success %}
{{ success }}
{% endif %} {% if backup_codes %}

Backup Codes

Save these codes somewhere safe. Each code can only be used once.

{% for code in backup_codes %} {{ code }} {% endfor %}
{% endif %} {% if totp_enabled %}

2FA is Enabled

Your account is protected with two-factor authentication.

{% elif secret %}

Set Up 2FA

Scan the QR code below with your authenticator app (Google Authenticator, Authy, etc.).

{% if qr_uri %} TOTP QR Code {% endif %}

Or enter manually:

{{ secret }}
{% endif %}
{% endblock %}