Fix: add account_inactive template / url (#9322)

This commit is contained in:
shamoon 2025-03-06 14:55:04 -08:00 committed by GitHub
parent f2667f5afa
commit cf48f47a8c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 42 additions and 3 deletions

View File

@ -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 %}

View File

@ -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 ""

View File

@ -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/",