{% extends "cms/base.html" %} {% load static %} {% block title %}Security Settings{% endblock %} {% block page_title %}Security & Two-Factor Authentication{% endblock %} {% block cms_content %} {% if messages %} {% for message in messages %}
{% endfor %} {% endif %}Scan a QR code with your authenticator app. Works offline. Most secure option.
{% if totp_qr %}Scan with your app, then enter the 6-digit code below.
Manual key: {{ totp_secret }}
An 8-digit code will be sent to {{ request.user.email }} each time you log in.
{% if email_otp_sent %} {% else %} {% endif %} {% endif %}A 6-digit code will be sent via SMS to your phone number.
{% if sms_otp_sent %} {% else %} {% endif %} {% endif %}Use these if you lose access to your 2FA method. Each code works once. Store them somewhere safe.
{% if new_backup_codes %}Save these now — they won't be shown again.
{{ code }}
{{ fa.unused_backup_count }} unused backup codes remaining.