Skip to content

Commit d109344

Browse files
committed
Replace deprecated ACCOUNT_EMAIL_REQUIRED with ACCOUNT_SIGNUP_FIELDS
1 parent e4ad3f0 commit d109344

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

djangosnippets/settings/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def user_url(user):
138138
MESSAGE_STORAGE = "django.contrib.messages.storage.session.SessionStorage"
139139

140140
ACCOUNT_EMAIL_CONFIRMATION_EXPIRE_DAYS = 7
141-
ACCOUNT_EMAIL_REQUIRED = True
141+
ACCOUNT_SIGNUP_FIELDS = ["email*", "username*", "password1*", "password2*"]
142142
ACCOUNT_EMAIL_VERIFICATION = "mandatory"
143143
ACCOUNT_DEFAULT_HTTP_PROTOCOL = "https"
144144
ACCOUNT_LOGOUT_ON_GET = True

0 commit comments

Comments
 (0)