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

{% trans "Enable two-factor authentication" %}

{% csrf_token %}

{% trans "Do you really want to enable two-factor authentication?" %}

{% trans "You will no longer be able to log in to pretix without one of your configured devices." %}

{% if new_emergency_tokens %}

{% trans "Your emergency codes" %}

{% blocktrans trimmed %} If you lose access to your devices, you can use one of your emergency tokens 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. {% endblocktrans %}

    {% for code in new_emergency_tokens %}
  • {{ code }}
  • {% endfor %}

{% else %}

{% icon "info-circle" %} {% blocktrans trimmed with generation_date_time=static_tokens_device.created_at %} You generated your emergency tokens on {{ generation_date_time }}. {% endblocktrans %}

{% endif %}
{% trans "Cancel" %}
{% endblock %}