{% extends "page.html" %} {% block subtitle %}{{ _('Two-factor authentication') }}{% endblock %} {% block primary_content %}

{{ _('Set up two-factor authentication') }}

{% if required %}
{{ _('Two-factor authentication is required for your account. Set it up to go on.') }}
{% endif %}
  1. {{ _('Install an authenticator app on your phone (Aegis, FreeOTP, Google Authenticator, Microsoft Authenticator...).') }}
  2. {{ _('Scan this code with it, or type the key.') }} {% if qr %}
    {{ qr|safe }}
    {% endif %}

    {{ secret }} ยท {{ _('Open in the app') }}

  3. {{ _('Enter the code it shows.') }}
{{ h.csrf_input() }}

{{ _('Log out') }}

{% endblock %}