]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Fix: allow disable allauth email verification (#5895)
authorshamoon <4887959+shamoon@users.noreply.github.com>
Mon, 26 Feb 2024 17:33:59 +0000 (09:33 -0800)
committerGitHub <noreply@github.com>
Mon, 26 Feb 2024 17:33:59 +0000 (09:33 -0800)
docs/configuration.md
src/paperless/settings.py

index 43eff582bfc70d6a905ec0cedd7ce00d1f5e91b7..36a1bb1c9db98e48ec4814019d80f6f649c665fa 100644 (file)
@@ -572,6 +572,17 @@ system. See the corresponding
 
     Defaults to 'https'
 
+#### [`PAPERLESS_ACCOUNT_EMAIL_VERIFICATION=<string>`](#PAPERLESS_ACCOUNT_EMAIL_VERIFICATION) {#PAPERLESS_ACCOUNT_EMAIL_VERIFICATION}
+
+: Determines whether email addresses are verified during signup (as performed by Django allauth). See the relevant
+[paperless settings](#PAPERLESS_EMAIL_HOST) and [the allauth docs](https://docs.allauth.org/en/latest/account/configuration.html)
+
+    Defaults to 'optional'
+
+!!! note
+
+    If you do not have a working email server set up you should set this to 'none'.
+
 #### [`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 the Django admin login cannot be disabled.
index 5f25b351254655802c39404f64f5f3771fb326f5..24b3ae32fe7e5000e4048bb55332a5a84f9b2710 100644 (file)
@@ -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