{% extends "base.html" %} {% block title %}Two-factor authentication{% endblock %} {% block content %} {% if mode == 'verify' %}
Enter the 6-digit code from your authenticator app, or one of your recovery codes.
{% if error %}Lost your phone? Use a recovery code. Lost those too? Contact support. Start over
A second step at login, using a code from Google Authenticator, 1Password, Authy or any TOTP app. Back to settings
{% if required and mode == 'setup' %}Open your authenticator app, add an account and scan the QR code.
Can't scan? Enter this key manually (time-based, 6 digits):
{{ secret_spaced }}
Enter the code your app shows now to turn two-factor on. You'll then get 8 recovery codes for when your phone is unavailable.
Each code works once, in place of your authenticator. Store them somewhere safe (a password manager), not in email.
{% for c in codes %}{{ c }}{% if not loop.last %}
{% endif %}{% endfor %}
Replaces all existing codes. Needs a current code from your app.
{% if has_password %}Confirm with your current password.{% else %}This account has no password, so confirm with a current authenticator code.{% endif %}