{% load i18n static %}

{% trans "Security" %}


{% trans "Two-Factor authentication" %}

{% if qrcode %}
{{ qrcode|safe }}
{% blocktrans trimmed %} Install a soft token authenticator like FreeOTP or Google Authenticator from your application repository and use that app to scan this QR code. {% endblocktrans %}
{% elif tokens %}
{% blocktrans trimmed %} Congratulations! Two-Factor Authentication is now enabled for your account. {% endblocktrans %}

{% blocktrans trimmed %} The following recovery codes can be used one time each to let you regain access to your account, in case you lose your phone for example. Make sure to save them in a safe place, otherwise you won't be able to access your account anymore. {% endblocktrans %}


    {% for token in tokens %}
  • {{ token }}
  • {% endfor %}
{% elif user.tfa_enabled %}
{% blocktrans trimmed %} Two-Factor Authentication is enabled for your account. {% endblocktrans %}
{% trans "Disable 2FA" %} {% trans "Reset recovery codes" %} {% else %}
{% blocktrans trimmed %} Two-Factor Authentication (2FA) is not yet activated for your account. Enabling this feature will increase your account's security. {% endblocktrans %}
{% endif %}