mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-11 09:07:18 +01:00
Fix: allow disable allauth email verification (#5895)
This commit is contained in:
parent
967fc98090
commit
3e2c541b7b
2 changed files with 16 additions and 0 deletions
|
|
@ -441,6 +441,11 @@ DISABLE_REGULAR_LOGIN = __get_boolean("PAPERLESS_DISABLE_REGULAR_LOGIN")
|
|||
|
||||
AUTO_LOGIN_USERNAME = os.getenv("PAPERLESS_AUTO_LOGIN_USERNAME")
|
||||
|
||||
ACCOUNT_EMAIL_VERIFICATION = os.getenv(
|
||||
"PAPERLESS_ACCOUNT_EMAIL_VERIFICATION",
|
||||
"optional",
|
||||
)
|
||||
|
||||
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