From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Thu, 6 Mar 2025 22:55:04 +0000 (-0800) Subject: Fix: add account_inactive template / url (#9322) X-Git-Tag: v2.15.0-beta.rc1~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf48f47a8c547961fb6a8c5d6b60dbc3a3aad348;p=thirdparty%2Fpaperless-ngx.git Fix: add account_inactive template / url (#9322) --- diff --git a/src/documents/templates/account/account_inactive.html b/src/documents/templates/account/account_inactive.html new file mode 100644 index 0000000000..4b7bd8922c --- /dev/null +++ b/src/documents/templates/account/account_inactive.html @@ -0,0 +1,18 @@ +{% extends "paperless-ngx/base.html" %} +{% load i18n %} + +{% block head_title %} + {% trans "Paperless-ngx account inactive" %} +{% endblock head_title %} + +{% block form_top_content %} +

{% translate "Account inactve." %}

+{% endblock form_top_content %} + +{% block form_content %} + {% url 'account_login' as login_url %} +

{% translate "This account is inactive." %}

+
+ {% translate "Return to login" %} +
+{% endblock form_content %} diff --git a/src/locale/en_US/LC_MESSAGES/django.po b/src/locale/en_US/LC_MESSAGES/django.po index dfd8b00a88..ed1da7376c 100644 --- a/src/locale/en_US/LC_MESSAGES/django.po +++ b/src/locale/en_US/LC_MESSAGES/django.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: paperless-ngx\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-03-06 14:43-0800\n" +"POT-Creation-Date: 2025-03-06 14:46-0800\n" "PO-Revision-Date: 2022-02-17 04:17\n" "Last-Translator: \n" "Language-Team: English\n" @@ -1194,6 +1194,22 @@ msgstr "" msgid "Invalid variable detected." msgstr "" +#: documents/templates/account/account_inactive.html:5 +msgid "Paperless-ngx account inactive" +msgstr "" + +#: documents/templates/account/account_inactive.html:9 +msgid "Account inactve." +msgstr "" + +#: documents/templates/account/account_inactive.html:14 +msgid "This account is inactive." +msgstr "" + +#: documents/templates/account/account_inactive.html:16 +msgid "Return to login" +msgstr "" + #: documents/templates/account/email/base_message.txt:1 #, python-format msgid "Hello from %(site_name)s!" @@ -1698,7 +1714,7 @@ msgstr "" msgid "Chinese Traditional" msgstr "" -#: paperless/urls.py:369 +#: paperless/urls.py:374 msgid "Paperless-ngx administration" msgstr "" diff --git a/src/paperless/urls.py b/src/paperless/urls.py index 4c81a4e48d..39819fd3d1 100644 --- a/src/paperless/urls.py +++ b/src/paperless/urls.py @@ -278,10 +278,15 @@ urlpatterns = [ include( [ # see allauth/account/urls.py - # login, logout, signup + # login, logout, signup, account_inactive path("login/", allauth_account_views.login, name="account_login"), path("logout/", allauth_account_views.logout, name="account_logout"), path("signup/", allauth_account_views.signup, name="account_signup"), + path( + "account_inactive/", + allauth_account_views.account_inactive, + name="account_inactive", + ), # password reset path( "password/",