A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Fix: add account_inactive template / url (#9322)
shamooncf48f47a8c54
diff --git a/src/documents/templates/account/account_inactive.html b/src/documents/templates/account/account_inactive.htmlnew file mode 100644index 000000000..4b7bd8922--- /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 %}+ <h4>{% translate "Account inactve." %}</h4>+{% endblock form_top_content %}++{% block form_content %}+ {% url 'account_login' as login_url %}+ <p>{% translate "This account is inactive." %}</p>+ <div class="d-grid mt-3">+ <a class="btn btn-lg btn-primary" href="{{ login_url }}">{% translate "Return to login" %}</a>+ </div>+{% endblock form_content %}diff --git a/src/locale/en_US/LC_MESSAGES/django.po b/src/locale/en_US/LC_MESSAGES/django.poindex dfd8b00a8..ed1da7376 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-formatmsgid "Hello from %(site_name)s!"@@ -1698,7 +1714,7 @@ msgstr ""msgid "Chinese Traditional"msgstr ""-#: paperless/urls.py:369+#: paperless/urls.py:374msgid "Paperless-ngx administration"msgstr ""diff --git a/src/paperless/urls.py b/src/paperless/urls.pyindex 4c81a4e48..39819fd3d 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_inactivepath("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 resetpath("password/",