Skip to content

Commit 7fbcc65

Browse files
authored
Update django-allauth to 65.5.0 (cookiecutter#5723)
1 parent c04a8e3 commit 7fbcc65

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

{{cookiecutter.project_slug}}/config/settings/base.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -337,10 +337,10 @@
337337
# https://docs.allauth.org/en/latest/account/configuration.html
338338
ACCOUNT_LOGIN_METHODS = {"{{cookiecutter.username_type}}"}
339339
# 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*"]
344344
# https://docs.allauth.org/en/latest/account/configuration.html
345345
ACCOUNT_USER_MODEL_USERNAME_FIELD = None
346346
{%- endif %}

{{cookiecutter.project_slug}}/requirements/base.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ uvicorn-worker==0.3.0 # https://github.com/Kludex/uvicorn-worker
3232
django==5.0.13 # pyup: < 5.1 # https://www.djangoproject.com/
3333
django-environ==0.12.0 # https://github.com/joke2k/django-environ
3434
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
3636
django-crispy-forms==2.3 # https://github.com/django-crispy-forms/django-crispy-forms
3737
crispy-bootstrap5==2024.10 # https://github.com/django-crispy-forms/crispy-bootstrap5
3838
{%- if cookiecutter.frontend_pipeline == 'Django Compressor' %}

0 commit comments

Comments
 (0)