{% if step == "complete" %}
✅

MFA Enabled Successfully

Your authenticator app is now linked. This protects both admin and frontend access.

⚠️ Save Your Backup Codes

Store these codes securely. Each can only be used once if you lose access to your authenticator.

{% for code in backup_codes %} {{ code }} {% endfor %}
These codes will not be shown again. Save them somewhere safe before continuing.
{% else %}

🔐 Set Up MFA

Multi-factor authentication is required for admin access. Scan the QR code with your authenticator app.

This setup applies to both Django admin and the Vitora web app frontend — you only need to do this once.
TOTP QR Code

Or enter this key manually:

{{ secret_key }}
{% csrf_token %} {% if error %}

{{ error }}

{% endif %}
Cancel & Log out {% endif %}