{% 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 obligatory and not user.require_2fa %}{% trans "This system enforces the usage of two-factor authentication!" %}
{% elif obligatory == "staff" %}{% trans "As an administrator, you need to use two-factor authentication." %}
{% elif obligatory == "team" %}{% trans "You are part of one or more organizer teams that require you to use 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 %} {% if obligatory == "team" %} {% blocktrans trimmed count count=obligatory_teams|length %} Leave team instead {% plural %} Leave {{ count }} teams instead {% endblocktrans %} {% 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 }}