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

{{ _('Two-factor authentication') }}

{{ _('A code from an authenticator app, asked after your password, so that a stolen password is not enough.') }}

{% if enabled %}

{{ _('It is on for your account.') }} {{ _('Recovery codes left: %(n)s.', n=left) }}

{% if required %}

{{ _('It is required for your account.') }}

{% else %}

{{ _('Turn it off') }}

{{ h.csrf_input() }}
{% endif %} {% else %}

{{ _('It is not on for your account. Turning it on is advised.') }}

{{ _('Set it up') }} {% endif %}
{% endblock %}