From 843fdc9d664594941b8fdf94a3e2ed0d7c1fa3d1 Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Tue, 25 Jun 2024 20:55:12 +0200 Subject: [PATCH] remove old allauth templates --- .../templates/allauth_2fa/authenticate.html | 16 ------- .../templates/allauth_2fa/backup_tokens.html | 39 --------------- .../templates/allauth_2fa/remove.html | 27 ----------- .../templates/allauth_2fa/setup.html | 48 ------------------- 4 files changed, 130 deletions(-) delete mode 100644 src/backend/InvenTree/templates/allauth_2fa/authenticate.html delete mode 100644 src/backend/InvenTree/templates/allauth_2fa/backup_tokens.html delete mode 100644 src/backend/InvenTree/templates/allauth_2fa/remove.html delete mode 100644 src/backend/InvenTree/templates/allauth_2fa/setup.html diff --git a/src/backend/InvenTree/templates/allauth_2fa/authenticate.html b/src/backend/InvenTree/templates/allauth_2fa/authenticate.html deleted file mode 100644 index 891d5ab5eb..0000000000 --- a/src/backend/InvenTree/templates/allauth_2fa/authenticate.html +++ /dev/null @@ -1,16 +0,0 @@ -{% extends "account/base.html" %} -{% load i18n crispy_forms_tags %} - -{% block content %} -

{% trans "Two-Factor Authentication" %}

- -
- {% csrf_token %} - {{ form|crispy }} - -
- -
-{% endblock content %} diff --git a/src/backend/InvenTree/templates/allauth_2fa/backup_tokens.html b/src/backend/InvenTree/templates/allauth_2fa/backup_tokens.html deleted file mode 100644 index 35cc8c5b42..0000000000 --- a/src/backend/InvenTree/templates/allauth_2fa/backup_tokens.html +++ /dev/null @@ -1,39 +0,0 @@ -{% extends "account/base.html" %} -{% load i18n %} - -{% block content %} -

- {% trans "Two-Factor Authentication Backup Tokens" %} -

- -{% if backup_tokens %} - {% if reveal_tokens %} - - {% else %} - {% trans 'Backup tokens have been generated, but are not revealed here for security reasons. Press the button below to generate new ones.' %} - {% endif %} -{% else %} - {% trans 'No backup tokens are available. Press the button below to generate some.' %} -{% endif %} - -
-
- {% csrf_token %} -
- -
-
- -
- - {% trans "Return to Site" %} - -
- -{% endblock content %} diff --git a/src/backend/InvenTree/templates/allauth_2fa/remove.html b/src/backend/InvenTree/templates/allauth_2fa/remove.html deleted file mode 100644 index 67c9c05286..0000000000 --- a/src/backend/InvenTree/templates/allauth_2fa/remove.html +++ /dev/null @@ -1,27 +0,0 @@ -{% extends "account/base.html" %} -{% load i18n crispy_forms_tags %} - -{% block content %} -

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

- -

{% trans "Are you sure?" %}

- -
- {% csrf_token %} - {{ form|crispy }} -
-
- -
-
- -
- - {% trans "Return to Site" %} - -
-{% endblock content %} diff --git a/src/backend/InvenTree/templates/allauth_2fa/setup.html b/src/backend/InvenTree/templates/allauth_2fa/setup.html deleted file mode 100644 index c05b049f1f..0000000000 --- a/src/backend/InvenTree/templates/allauth_2fa/setup.html +++ /dev/null @@ -1,48 +0,0 @@ -{% extends "account/base.html" %} -{% load i18n crispy_forms_tags %} - -{% 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).' %} -

- -
-{% trans 'QR Code' %} -
-

{% trans 'Secret: ' %}{{ secret }}

-
- -

- {% trans 'Step 2' %}: -

- -

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

- -
- {% csrf_token %} - {{ form|crispy }} - -
-
- -
-
- -
- - {% trans "Return to Site" %} - -
-{% endblock content %}