{% extends "pretixcontrol/base.html" %} {% load i18n %} {% load bootstrap3 %} {% block title %}{% trans "Two-factor authentication" %}{% endblock %} {% block content %}
{% 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 "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 %}{% trans "Two-factor authentication is currently enabled." %}
{% 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 %}{% 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:" %}
{{ t.token }}