{% extends "base.html" %} {% block title %}Set Up Two-Factor Authentication - Counterscarp Engine{% endblock %} {% block content %}
{% if setup_complete %}

Two-Factor Authentication Enabled

2FA has been successfully enabled for your account.

⚠ Save Your Recovery Codes

These 10 one-time recovery codes can be used to access your account if you lose your authenticator. They will NOT be shown again.

{% for code in recovery_codes %}{{ code }}{% if not loop.last %}
{% endif %}{% endfor %}
Continue to Settings {% else %}

Set Up Two-Factor Authentication

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

{% if error %}
{{ error }}
{% endif %}

1. Scan QR Code

Can't scan? Copy the URI below into your authenticator app.

{{ provisioning_uri }}
or enter manually

2. Manual Entry Key

{{ totp_secret }}

Type: TOTP • Algorithm: SHA1 • Digits: 6 • Period: 30s

verify
{% endif %}
{% if not setup_complete %} {% endif %} {% endblock %}