File tree 2 files changed +5
-5
lines changed
{{cookiecutter.project_slug}}
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 337
337
# https://docs.allauth.org/en/latest/account/configuration.html
338
338
ACCOUNT_LOGIN_METHODS = {"{{cookiecutter.username_type}}" }
339
339
# https://docs.allauth.org/en/latest/account/configuration.html
340
- ACCOUNT_EMAIL_REQUIRED = True
341
- { % - if cookiecutter . username_type == "email" % }
342
- # https://docs.allauth.org/en/latest/account/configuration.html
343
- ACCOUNT_USERNAME_REQUIRED = False
340
+ { % - if cookiecutter . username_type == "username" % }
341
+ ACCOUNT_SIGNUP_FIELDS = [ "email*" , "username*" , "password1*" , "password2*" ]
342
+ { % - else % }
343
+ ACCOUNT_SIGNUP_FIELDS = [ "email*" , "password1*" , "password2*" ]
344
344
# https://docs.allauth.org/en/latest/account/configuration.html
345
345
ACCOUNT_USER_MODEL_USERNAME_FIELD = None
346
346
{% - endif % }
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ uvicorn-worker==0.3.0 # https://github.com/Kludex/uvicorn-worker
32
32
django==5.0.13 # pyup: < 5.1 # https://www.djangoproject.com/
33
33
django-environ==0.12.0 # https://github.com/joke2k/django-environ
34
34
django-model-utils==5.0.0 # https://github.com/jazzband/django-model-utils
35
- django-allauth[mfa]==65.4.1 # https://github.com/pennersr/django-allauth
35
+ django-allauth[mfa]==65.5.0 # https://github.com/pennersr/django-allauth
36
36
django-crispy-forms==2.3 # https://github.com/django-crispy-forms/django-crispy-forms
37
37
crispy-bootstrap5==2024.10 # https://github.com/django-crispy-forms/crispy-bootstrap5
38
38
{%- if cookiecutter.frontend_pipeline == 'Django Compressor' %}
You can’t perform that action at this time.
0 commit comments