{% extends "vantage/base.html" %} {% load i18n %} {% comment %} Four states, one page: newly issued recovery codes; on; being set up; off. The secret appears only in the "being set up" state, and only for the account that is setting it up. Once a code has confirmed it, nothing in the panel renders it again — recovering it means switching two-factor sign-in off and setting it up afresh. The recovery codes appear only in the response that created them. The page is sent with Cache-Control: no-store, so the back button does not bring them back either. {% endcomment %} {% block content %}
{{ page_description }}
{% translate "Two-factor sign-in is now on." %}
{% endif %}{% blocktranslate trimmed %} Each code signs you in once if you lose your phone. Keep them somewhere safe, such as a password manager. They will not be shown again. {% endblocktranslate %}
{{ code }}{% blocktranslate trimmed %} In an authenticator app — Google Authenticator, Microsoft Authenticator, 1Password, Bitwarden or any other that supports time-based codes — add an account and scan this code. {% endblocktranslate %}
{% if enrol.qr %}{% if device %}{% blocktranslate trimmed with issuer=enrol.issuer name=pending.name %} Cannot scan it? Choose to enter a key instead, name the entry something you will recognise, such as {{ issuer }} ({{ name }}), and type: {% endblocktranslate %}{% else %}{% blocktranslate trimmed with issuer=enrol.issuer %} Cannot scan it? Choose to enter a key instead, name it {{ issuer }}, and type: {% endblocktranslate %}{% endif %}
{{ enrol.key }}
{% translate "Or open it in an authenticator app on this device" %}
{% blocktranslate trimmed %} After your password, you are asked for a code from any of your authenticator apps below. Each change on this page asks you to confirm it is you, with a current code or your password. {% endblocktranslate %}
{% blocktranslate trimmed count counter=remaining %} {{ counter }} recovery code left. {% plural %} {{ counter }} recovery codes left. {% endblocktranslate %}
{% translate "Replacing them makes the old ones stop working." %}
{% translate "This removes every device and all recovery codes, and your account goes back to a password alone." %} {% if required %} {% translate "Your role requires two-factor sign-in, so switching it off takes you straight back to setting it up." %} {% endif %}
{% blocktranslate trimmed %} With it on, signing in takes your password and a code from an app on your phone, so a leaked password is not enough on its own. {% endblocktranslate %}