{% include 'header.html' %}

Enable Two-Factor Authentication

{% if step == 'generate' %}

Two-factor authentication adds an extra layer of security to your account.

You'll need an authenticator app like Google Authenticator, Authy, or Microsoft Authenticator.

{% elif step == 'verify' %}

Scan this QR code with your authenticator app:

QR Code

Or enter this secret manually:

{{ secret }}
{% if error %}
{{ error }}
{% endif %}
{% elif step == 'backup_codes' %}

Important: Save Your Backup Codes

These codes can be used to access your account if you lose your authenticator device. Store them in a safe place. Each code can only be used once.

Your Backup Codes

{% for code_pair in backup_codes %}
{{ code_pair }}
{% endfor %}
Continue
{% endif %}