Enhancement: support disabling regular login (#5816)

This commit is contained in:
shamoon 2024-02-25 21:17:21 -08:00 committed by GitHub
parent 90b4691f16
commit 1335ab5f1b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 115 additions and 57 deletions

View file

@ -437,6 +437,8 @@ SOCIALACCOUNT_PROVIDERS = json.loads(
os.getenv("PAPERLESS_SOCIALACCOUNT_PROVIDERS", "{}"),
)
DISABLE_REGULAR_LOGIN = __get_boolean("PAPERLESS_DISABLE_REGULAR_LOGIN")
AUTO_LOGIN_USERNAME = os.getenv("PAPERLESS_AUTO_LOGIN_USERNAME")
if AUTO_LOGIN_USERNAME: