This commit is contained in:
Iliyan Angelov
2025-09-14 23:24:25 +03:00
commit c67067a2a4
71311 changed files with 6800714 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
{% extends "mfa/totp/base.html" %}
{% load i18n %}
{% block content %}
<h1>{% trans "Activate Authenticator App" %}</h1>
{{ totp_svg|safe }}
<form method="POST" action="{% url 'mfa_activate_totp' %}">
{% csrf_token %}
<p>
<label>{% translate "Authenticator secret" %}:</label>
<input type="text"
disabled="disabled"
value="{{ form.secret }}"
size="{{ form.secret|length }}">
</p>
{{ form.as_p }}
<button type="submit">{% trans "Activate" %}</button>
</form>
{% endblock content %}

View File

@@ -0,0 +1,5 @@
{% extends "account/base.html" %}
{% load i18n %}
{% block head_title %}
{% trans "Authenticator App" %}
{% endblock head_title %}

View File

@@ -0,0 +1,13 @@
{% extends "mfa/totp/base.html" %}
{% load i18n %}
{% block content %}
<h1>{% trans "Deactivate Authenticator App" %}</h1>
<p>
{% blocktranslate %}You are about to deactivate authenticator app based authentication. Are you sure?{% endblocktranslate %}
</p>
<form method="POST" action="{% url 'mfa_deactivate_totp' %}">
{% csrf_token %}
{{ form.as_p }}
<button type="submit">{% trans "Deactivate" %}</button>
</form>
{% endblock content %}