aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-08-01 20:56:57 +0100
committerMatthew Lemon <y@yulqen.org>2024-08-01 20:56:57 +0100
commit0565916dd6db9f33a49a8350f6eae96d53ba1e87 (patch)
tree4273582b463fa752b1a6a96645e625da615b8242
parent15990ee4c2e53053f0ff86ab6cdb1ee46214ae54 (diff)
Switch on console output for email for testing.
-rw-r--r--config/settings/base.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/config/settings/base.py b/config/settings/base.py
index f795a4f..7e1f44d 100644
--- a/config/settings/base.py
+++ b/config/settings/base.py
@@ -218,7 +218,8 @@ X_FRAME_OPTIONS = "DENY"
# https://docs.djangoproject.com/en/dev/ref/settings/#email-backend
EMAIL_BACKEND = env(
"DJANGO_EMAIL_BACKEND",
- default="django.core.mail.backends.smtp.EmailBackend",
+ # default="django.core.mail.backends.smtp.EmailBackend",
+ default="django.core.mail.backends.console.EmailBackend",
)
# https://docs.djangoproject.com/en/dev/ref/settings/#email-timeout
EMAIL_TIMEOUT = 5
@@ -305,7 +306,7 @@ ACCOUNT_USERNAME_REQUIRED = False
# https://docs.allauth.org/en/latest/account/configuration.html
ACCOUNT_USER_MODEL_USERNAME_FIELD = None
# https://docs.allauth.org/en/latest/account/configuration.html
-# ACCOUNT_EMAIL_VERIFICATION = "mandatory"
+ACCOUNT_EMAIL_VERIFICATION = "mandatory"
# https://docs.allauth.org/en/latest/account/configuration.html
ACCOUNT_ADAPTER = "pyblackbird_cc.users.adapters.AccountAdapter"
# https://docs.allauth.org/en/latest/account/forms.html