mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-08 07:45:32 +01:00
Fix: allow setting allauth ACCOUNT_SESSION_REMEMBER (#6105)
This commit is contained in:
parent
2c4a664df4
commit
43ec154bc2
2 changed files with 7 additions and 0 deletions
|
|
@ -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/)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue