{% extends 'preferences/layout.html' %} {% load i18n %} {% block title %}{% trans "Two Factor Authentication" %}{% endblock %} {% block header %} {% trans "Two Factor Authentication" %} {% endblock %} {% block panel %}
{% if success %}
{% trans "Successfully updated 2FA settings" %}
{% endif %} {% if request.user.two_factor_auth %}

Two Factor Authentication is active on your account.

{% trans "Disable 2FA" %} {% elif password_confirmed %}
{% csrf_token %}

Scan the QR code with your authentication app and then enter the code from your app below to confirm your app is set up.

{{ qrcode | safe }}
{{ form.otp }} {% include 'snippets/form_errors.html' with errors_list=form.current_password.errors id="desc_current_password" %}
{% else %}

{% trans "You can make your account more secure by using Two Factor Authentication (2FA). This will require you to enter a one-time code using a phone app like Authy, Google Authenticator or Microsoft Authenticator each time you log in." %}

{% trans "Confirm your password to begin setting up 2FA." %}

{% csrf_token %}
{{ form.password }} {% include 'snippets/form_errors.html' with errors_list=form.current_password.errors id="desc_current_password" %}
{% endif %}
{% endblock %}