File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -241,12 +241,24 @@ def external_urls_context_processor(request):
241
241
242
242
ACCOUNT_USER_MODEL_USERNAME_FIELD = "name"
243
243
ACCOUNT_USER_MODEL_EMAIL_FIELD = "email"
244
+ # https://django-allauth.readthedocs.io/en/latest/configuration.html
245
+ # ACCOUNT_EMAIL_VERIFICATION = "mandatory" # requires ACCOUNT_EMAIL_REQUIRED = True
246
+ # https://django-allauth.readthedocs.io/en/latest/configuration.html
247
+ ACCOUNT_ADAPTER = "login.adapters.AccountAdapter"
248
+ # https://django-allauth.readthedocs.io/en/latest/forms.html
249
+ ACCOUNT_FORMS = {"signup" : "login.forms.CreateUserForm" }
244
250
# ACCOUNT_EMAIL_REQUIRED = True
245
251
# ACCOUNT_USERNAME_REQUIRED = False
246
252
# ACCOUNT_AUTHENTICATION_METHOD = 'email'
247
253
ACCOUNT_ALLOW_REGISTRATION = True
248
254
249
255
256
+ # https://django-allauth.readthedocs.io/en/latest/configuration.html
257
+ SOCIALACCOUNT_ADAPTER = "login.adapters.SocialAccountAdapter"
258
+ # https://django-allauth.readthedocs.io/en/latest/forms.html
259
+ SOCIALACCOUNT_FORMS = {"signup" : "htmxdj.users.forms.UserSocialSignupForm" }
260
+
261
+
250
262
# axes login throttling
251
263
AXES_ENABLED = True
252
264
AXES_FAILURE_LIMIT = 5 # Number of allowed attempts
You can’t perform that action at this time.
0 commit comments