Skip to content

Commit

Permalink
Update deprecated allauth config options and doc url
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarson committed Feb 28, 2025
1 parent 1432c0b commit ac567e1
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,16 +283,11 @@

# django-allauth
# ------------------------------------------------------------------------------
# https://docs.allauth.org/en/latest/account/configuration.html
ACCOUNT_ALLOW_REGISTRATION = env.bool("DJANGO_ACCOUNT_ALLOW_REGISTRATION", True)
# https://django-allauth.readthedocs.io/en/latest/configuration.html
ACCOUNT_AUTHENTICATION_METHOD = "username"
# https://django-allauth.readthedocs.io/en/latest/configuration.html
ACCOUNT_LOGIN_METHODS = {"username"}
ACCOUNT_EMAIL_REQUIRED = True
# https://django-allauth.readthedocs.io/en/latest/configuration.html
ACCOUNT_EMAIL_VERIFICATION = "mandatory"
# https://django-allauth.readthedocs.io/en/latest/configuration.html
ACCOUNT_ADAPTER = "gregor_django.users.adapters.AccountAdapter"
# https://django-allauth.readthedocs.io/en/latest/configuration.html
SOCIALACCOUNT_ADAPTER = "gregor_django.users.adapters.SocialAccountAdapter"
ACCOUNT_EMAIL_VERIFICATION = "none"

Expand Down

0 comments on commit ac567e1

Please sign in to comment.