Fix: allow setting allauth ACCOUNT_SESSION_REMEMBER (#6105)

This commit is contained in:
shamoon authored and GitHub committed 2024-03-14 15:34:23 +00:00
1 parent 2c4a664df4
commit 43ec154bc2
2 files changed
+7

No files matched your search

+2
View 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