Skip to content

Commit 7fa8822

Browse files
committed
fix(examples): migrate to new settings
1 parent 6bd58e9 commit 7fa8822

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

examples/react-spa/backend/backend/settings.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,10 @@
129129

130130
ACCOUNT_EMAIL_VERIFICATION = "mandatory"
131131
ACCOUNT_LOGIN_METHODS = {"email"}
132-
ACCOUNT_USERNAME_REQUIRED = False
133-
ACCOUNT_EMAIL_REQUIRED = True
134132
ACCOUNT_LOGOUT_ON_PASSWORD_CHANGE = False
135133
ACCOUNT_LOGIN_BY_CODE_ENABLED = True
136134
ACCOUNT_EMAIL_VERIFICATION_BY_CODE_ENABLED = True
135+
ACCOUNT_SIGNUP_FIELDS = ["email*", "password1*", "password2*"]
137136

138137
HEADLESS_ONLY = True
139138
HEADLESS_FRONTEND_URLS = {

examples/regular-django/example/settings.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -227,14 +227,13 @@
227227
ALLOWED_HOSTS = ["127.0.0.1", "localhost"]
228228
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
229229
ACCOUNT_LOGIN_BY_CODE_ENABLED = True
230-
ACCOUNT_EMAIL_REQUIRED = True
231230
ACCOUNT_EMAIL_VERIFICATION = "mandatory"
232231
ACCOUNT_EMAIL_VERIFICATION_BY_CODE_ENABLED = True
233-
ACCOUNT_USERNAME_REQUIRED = False
234232
ACCOUNT_LOGIN_METHODS = {
235233
"email",
236234
}
237235
ACCOUNT_PASSWORD_RESET_BY_CODE_ENABLED = True
236+
ACCOUNT_SIGNUP_FIELDS = ["email*", "password1*", "password2*"]
238237

239238
MFA_SUPPORTED_TYPES = [
240239
"webauthn",

0 commit comments

Comments
 (0)