{% extends "account/base.html" %} {% load i18n %} {% load form_filters %} {% block head_title %}{% trans "Two-Factor Authentication Setup" %}{% endblock %} {% block content %}

{% trans "Setup Two-Factor Authentication" %}

{% trans 'Step 1' %}:

{% trans 'Scan the QR code below with a token generator of your choice (for instance Google Authenticator).' %}

QR code

{% trans 'Step 2' %}:

{% trans 'Input a token generated by the app:' %}

{% csrf_token %}
{{ form.otp_token | add_class:"border sm:text-sm rounded-lg block w-full p-2.5 bg-gray-700 border-gray-600 :placeholder-gray-400 text-white focus:ring-blue-500 focus:border-blue-500" }}
{{ form.otp_token.errors | safe }}
{% if form.non_field_errors %}
{{ form.non_field_errors | safe }}
{% endif %}
{% endblock %}