{% extends "base.html" %} {% block title %}{{ t('Sign-in security') }}{% endblock %} {% block content %}

{{ t('Sign-in security') }}

{{ t('Two-factor sign-in') }}

{% if u.totp_enabled %}

{{ t('On') }} {{ t('Each sign-in asks for a code from your authenticator app as well as your password.') }}

{% elif qr %}
  1. {{ t('Open Google Authenticator, Microsoft Authenticator or a similar app on your phone.') }}
  2. {{ t('Scan this code:') }}
    {{ qr|safe }}
    {{ t('Or type this key:') }} {{ u.totp_secret }}
  3. {{ t('Enter the 6-digit code the app shows:') }}
{% else %}

{{ t('Protect your account with a second step: a code from an authenticator app on your phone, asked at every sign-in.') }}

{% endif %}
{% endblock %}