{% extends "pretixcontrol/base.html" %} {% load i18n %} {% load bootstrap3 %} {% block title %}{% trans "Two-factor authentication" %}{% endblock %} {% block content %}

{% trans "Two-factor authentication" %}

{% blocktrans trimmed %} Two-factor authentication is a way to add additional security to your account. If you enable it, you will not only need your password to log in, but also an additional token that is generated e.g. by an app on your smartphone or a hardware token generator and that changes on a regular basis. {% endblocktrans %}

{% if settings.PRETIX_OBLIGATORY_2FA %}

{% trans "Obligatory usage of two-factor authentication" %}

{% trans "This system enforces the usage of two-factor authentication!" %}

{% if not devices %}

{% trans "Please set up at least one device below." %}

{% elif not user.require_2fa %}

{% trans "Please activate two-factor authentication using the button below." %}

{% endif %}
{% endif %} {% if user.require_2fa %}

{% trans "Two-factor status" %}

{% if not settings.PRETIX_OBLIGATORY_2FA %} {% trans "Disable" %} {% endif %}

{% trans "Two-factor authentication is currently enabled." %}

{% else %}

{% trans "Two-factor status" %}

{% if devices|length %} {% trans "Enable" %} {% endif %}

{% trans "Two-factor authentication is currently disabled." %}

{% if not devices|length %}

{% trans "To enable it, you need to configure at least one device below." %}

{% endif %}
{% endif %}

{% trans "Registered devices" %}

{% trans "Emergency tokens" %}

{% trans "If you lose access to your devices, you can use one of the following keys to log in. We recommend to store them in a safe place, e.g. printed out or in a password manager. Every token can be used at most once." %}

{% trans "Unused tokens:" %}

{% trans "Generate new emergency tokens" %}
{% endblock %}