From ba331399934c168aa0e186b18566f6b2a6e6f858 Mon Sep 17 00:00:00 2001 From: badbl0cks <4161747+badbl0cks@users.noreply.github.com> Date: Sat, 15 Mar 2025 22:27:21 -0700 Subject: [PATCH] Update all auth config to always email notifications, use https, min username length of 3, and login on email confirmation --- django_project/settings.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/django_project/settings.py b/django_project/settings.py index 1571649..81fdf59 100644 --- a/django_project/settings.py +++ b/django_project/settings.py @@ -220,10 +220,14 @@ ACCOUNT_SIGNUP_PASSWORD_ENTER_TWICE = True ACCOUNT_AUTHENTICATION_METHOD = "username_email" ACCOUNT_EMAIL_REQUIRED = True ACCOUNT_EMAIL_VERIFICATION = env('ACCOUNT_EMAIL_VERIFICATION') +ACCOUNT_EMAIL_NOTIFICATIONS = True +ACCOUNT_DEFAULT_HTTP_PROTOCOL = "https" +ACCOUNT_LOGIN_ON_EMAIL_CONFIRMATION = True +ACCOUNT_USERNAME_MIN_LENGTH = 3 ACCOUNT_CHANGE_EMAIL = True ACCOUNT_UNIQUE_EMAIL = True ACCOUNT_LOGIN_BY_CODE_ENABLED = True -ACCOUNT_SIGNUP_FORM_HONEYPOT_FIELD = "in-game-username" +ACCOUNT_SIGNUP_FORM_HONEYPOT_FIELD = "signature" ACCOUNT_USERNAME_REQUIRED = True ACCOUNT_FORMS = { "signup": "accounts.forms.CustomUserCreationForm",