]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Enhancement: support allauth disable unknown account emails (#9743)
authorshamoon <4887959+shamoon@users.noreply.github.com>
Tue, 22 Apr 2025 21:58:33 +0000 (14:58 -0700)
committerGitHub <noreply@github.com>
Tue, 22 Apr 2025 21:58:33 +0000 (21:58 +0000)
docs/configuration.md
src/paperless/settings.py

index 47d4ef254cfe5f69ada549a64c8a3f2d5ad7070d..c48a4b0df15b3b0047616c794d112aee1c99849c 100644 (file)
@@ -631,6 +631,12 @@ If both the [PAPERLESS_ACCOUNT_DEFAULT_GROUPS](#PAPERLESS_ACCOUNT_DEFAULT_GROUPS
 
     If you do not have a working email server set up you should set this to 'none'.
 
+#### [`PAPERLESS_ACCOUNT_EMAIL_UNKNOWN_ACCOUNTS=<bool>`](#PAPERLESS_ACCOUNT_EMAIL_UNKNOWN_ACCOUNTS) {#PAPERLESS_ACCOUNT_EMAIL_UNKNOWN_ACCOUNTS}
+
+: See the relevant [django-allauth documentation](https://docs.allauth.org/en/latest/account/configuration.html)
+
+    Defaults to True (from allauth)
+
 #### [`PAPERLESS_DISABLE_REGULAR_LOGIN=<bool>`](#PAPERLESS_DISABLE_REGULAR_LOGIN) {#PAPERLESS_DISABLE_REGULAR_LOGIN}
 
 : Disables the regular frontend username / password login, i.e. once you have setup SSO. Note that this setting does not disable the Django admin login nor logging in with local credentials via the API. To prevent access to the Django admin, consider blocking `/admin/` in your [web server or reverse proxy configuration](https://github.com/paperless-ngx/paperless-ngx/wiki/Using-a-Reverse-Proxy-with-Paperless-ngx).
index 6199bc63221f9ec5adb0539055b39a5c0fe03f6e..a8370657167d013a959da053d13a72df1bdf4d1b 100644 (file)
@@ -508,6 +508,11 @@ ACCOUNT_EMAIL_VERIFICATION = os.getenv(
     "optional",
 )
 
+ACCOUNT_EMAIL_UNKNOWN_ACCOUNTS = __get_boolean(
+    "PAPERLESS_ACCOUNT_EMAIL_UNKNOWN_ACCOUNTS",
+    "True",
+)
+
 ACCOUNT_SESSION_REMEMBER = __get_boolean("PAPERLESS_ACCOUNT_SESSION_REMEMBER", "True")
 SESSION_EXPIRE_AT_BROWSER_CLOSE = not ACCOUNT_SESSION_REMEMBER
 SESSION_COOKIE_AGE = int(