File allauth.patch of Package python-postorius
From c6d37ce1153cdad27029e95a6d667c1268c48d70 Mon Sep 17 00:00:00 2001
From: Mark Sapiro <mark@msapiro.net>
Date: Sat, 12 Jul 2025 20:48:04 -0400
Subject: [PATCH] Update settings for latest allauth.
---
example_project/settings.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/example_project/settings.py b/example_project/settings.py
index 7745a6ea..ed907512 100644
--- a/example_project/settings.py
+++ b/example_project/settings.py
@@ -214,8 +214,8 @@ AUTHENTICATION_BACKENDS = (
)
# Django Allauth
-ACCOUNT_AUTHENTICATION_METHOD = 'username_email'
-ACCOUNT_EMAIL_REQUIRED = True
+ACCOUNT_LOGIN_METHODS = {'email', 'username'}
+ACCOUNT_SIGNUP_FIELDS = ['username*', 'email*', 'password1*', 'password2*']
ACCOUNT_EMAIL_VERIFICATION = 'mandatory'
ACCOUNT_DEFAULT_HTTP_PROTOCOL = 'https'
ACCOUNT_UNIQUE_EMAIL = True
--
GitLab