On 5/14/25 11:50, Jan Eden via Mailman-users wrote:

– and solved them with the additions to /etc/mailman3/settings.py
suggested by Mark:

del ACCOUNT_AUTHENTICATION_METHOD
ACCOUNT_LOGIN_METHODS = {'email', 'username'}

I suggested the above.

del ACCOUNT_EMAIL_REQUIRED
ACCOUNT_SIGNUP_FIELDS = ['email*', 'username*', 'password1*', 'password2*']


I didn't suggest these. That was from another poster in that thread. We don't set

ACCOUNT_SIGNUP_FIELDS = ['email*', 'username*', 'password1*', 'password2*']

in mailman_web/settings/mailman.py because the default is

ACCOUNT_SIGNUP_FIELDS = ['username*', 'email', 'password1*', 'password2*']

and that plus

ACCOUNT_EMAIL_REQUIRED = True

is the same thing. However, it appears that there is a deprecation warning with django-allauth >= 65.5. I haven't seen this because the sites I manage are all using django-allauth 65.4.1

So to avoid the deprecations with django-allauth >= 65.5 it is appropriate to drop ACCOUNT_EMAIL_REQUIRED and set

ACCOUNT_SIGNUP_FIELDS = ['email*', 'username*', 'password1*', 'password2*']

However, that setting doesn't exist in django-allauth < 65.5 so we also need to require django-allauth >= 65.5. I will do this.

--
Mark Sapiro <m...@msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

_______________________________________________
Mailman-users mailing list -- mailman-users@mailman3.org
To unsubscribe send an email to mailman-users-le...@mailman3.org
https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
Archived at: 
https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/TN46BCKIEYH7LBBU4B5MTEU7Y657HDL2/

This message sent to arch...@mail-archive.com

Reply via email to