]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Fix: allow setting allauth ACCOUNT_SESSION_REMEMBER (#6105)
authorshamoon <4887959+shamoon@users.noreply.github.com>
Thu, 14 Mar 2024 15:34:23 +0000 (08:34 -0700)
committerGitHub <noreply@github.com>
Thu, 14 Mar 2024 15:34:23 +0000 (15:34 +0000)
docs/configuration.md
src/paperless/settings.py

index 5182d018bc139cacddc7b43607755311484e455a..981d27b27bfd332644d5047adf7e27e49b294d25 100644 (file)
@@ -589,6 +589,11 @@ system. See the corresponding
 
     Defaults to False
 
+#### [`PAPERLESS_ACCOUNT_SESSION_REMEMBER=<bool>`](#PAPERLESS_ACCOUNT_SESSION_REMEMBER) {#PAPERLESS_ACCOUNT_SESSION_REMEMBER}
+
+: See the corresponding
+[django-allauth documentation](https://docs.allauth.org/en/latest/account/configuration.html)
+
 ## OCR settings {#ocr}
 
 Paperless uses [OCRmyPDF](https://ocrmypdf.readthedocs.io/en/latest/)
index 77adb6bbff8722753c10faeb725b2bad6c3f3ddb..a583ef40675e7bdc5b2b8d1095093299fa6311a5 100644 (file)
@@ -456,6 +456,8 @@ ACCOUNT_EMAIL_VERIFICATION = os.getenv(
     "optional",
 )
 
+ACCOUNT_SESSION_REMEMBER = __get_boolean("PAPERLESS_ACCOUNT_SESSION_REMEMBER")
+
 if AUTO_LOGIN_USERNAME:
     _index = MIDDLEWARE.index("django.contrib.auth.middleware.AuthenticationMiddleware")
     # This overrides everything the auth middleware is doing but still allows