{% extends "frontend/form.html" %} {% load qrcode %} {% load crispy_forms_tags %} {% block form %} {% if request.user.totpsecret.active %} Huh, how did you end up here? Your two-factor token is already active! {% else %}

Please scan the following QR code with your authenticator app and confirm by entering the displayed token in the field below:

{{ form | crispy }} {% endif %} {% endblock %} {% block buttons %} {% if request.user.totpsecret.active %} {% else %} {% endif %} {% endblock %}