From 0565916dd6db9f33a49a8350f6eae96d53ba1e87 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Thu, 1 Aug 2024 20:56:57 +0100 Subject: Switch on console output for email for testing. --- config/settings/base.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'config/settings/base.py') 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 -- cgit v1.2.3