{% extends "admin/base_site.html" %} {% load i18n static %} {% block title %}Setup TOTP Authentication{% endblock %} {% block extrahead %} {% endblock %} {% block content %}

Setup TOTP Authentication

{% if existing_totp %}
Note: You already have TOTP enabled. This will replace your existing TOTP configuration.
{% else %}
Security Notice: TOTP provides secure two-factor authentication using time-based codes.
{% endif %} {% if verification_error %}
Verification Failed: The code you entered is incorrect. Please try again with a fresh code from your authenticator app.
{% endif %}

Step 1: Scan QR Code

Open your authenticator app (Google Authenticator, Authy, etc.) and scan this QR code:

QR Code

Or manually enter this secret key:

{{ secret }}

Step 2: Verify Setup

Enter the 6-digit code from your authenticator app to verify the setup. After verification, you'll receive backup codes to save securely.

{% csrf_token %} {% if overwrite %} {% endif %}

{% if is_current_user %}

← Back to 2FA Management

{% else %}

← Back to setup options

{% endif %}
{% endblock %}