kumidc/frontend/templates/frontend/deactivate_totp.html
2022-08-04 13:15:10 +02:00

20 lines
605 B
HTML

{% extends "frontend/form.html" %}
{% load qrcode %}
{% load crispy_forms_tags %}
{% block form %}
{% if not request.user.totpsecret.active %}
Huh, how did you end up here? Your two-factor token is not active!
{% else %}
<p>Two-factor authentication is currently enabled for your account. If you wish to disable it, please enter the token displayed by your authentication app.</p>
{{ form | crispy }}
{% endif %}
{% endblock %}
{% block buttons %}
{% if not request.user.totpsecret.active %}
{% else %}
<input class="btn btn-primary" type="submit" value="Save" />
{% endif %}
{% endblock %}