{% extends "base.html" %} {% block title %}{{ _('Two-factor authentication') }}{% endblock %} {% block content %}

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

{{ _('Add an extra layer of security to your account using a TOTP authenticator app (Google Authenticator, Authy, 1Password, etc.).') }}

{% if two_factor_enabled %}

{{ _('Two-factor authentication is enabled for your account.') }}

{% else %}

{{ _('Two-factor authentication is currently disabled.') }}

{% if not secret %}

{{ _('A secret will be generated when you enable 2FA.') }}

{% else %}

{{ _('1) Add to your authenticator app') }}

{{ _('If you cannot scan a QR code, you can manually enter this secret:') }}

{{ secret }}
{% if provisioning_uri %}
{{ _('Provisioning URI:') }} {{ provisioning_uri }}
{% endif %}
{% endif %}

{{ _('2) Verify and enable') }}

{% endif %}
{% endblock %}