Replace deprecated setting by newer one

This commit is contained in:
Bruno Alla 2025-02-07 10:14:15 +00:00
parent 7ea49157da
commit f04370de27

View File

@ -335,7 +335,7 @@ CELERY_WORKER_HIJACK_ROOT_LOGGER = False
# ------------------------------------------------------------------------------
ACCOUNT_ALLOW_REGISTRATION = env.bool("DJANGO_ACCOUNT_ALLOW_REGISTRATION", True)
# https://docs.allauth.org/en/latest/account/configuration.html
ACCOUNT_AUTHENTICATION_METHOD = "{{cookiecutter.username_type}}"
ACCOUNT_LOGIN_METHODS = {"{{cookiecutter.username_type}}"}
# https://docs.allauth.org/en/latest/account/configuration.html
ACCOUNT_EMAIL_REQUIRED = True
{%- if cookiecutter.username_type == "email" %}