Skip to content

Commit

Permalink
Add new settings from django-allauth 0.43.0
Browse files Browse the repository at this point in the history
  • Loading branch information
afabiani committed Oct 22, 2020
1 parent e2522fd commit 00f4be1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions geonode/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -1868,6 +1868,11 @@ def get_geonode_catalogue_service():
ACCOUNT_EMAIL_REQUIRED = ast.literal_eval(os.environ.get('ACCOUNT_EMAIL_REQUIRED', 'True'))
ACCOUNT_EMAIL_VERIFICATION = os.environ.get('ACCOUNT_EMAIL_VERIFICATION', 'none')

# Since django-allauth 0.43.0.
ACCOUNT_SIGNUP_REDIRECT_URL = os.environ.get('ACCOUNT_SIGNUP_REDIRECT_URL', os.getenv('SITEURL', _default_siteurl))
ACCOUNT_LOGIN_ATTEMPTS_LIMIT = int(os.getenv('ACCOUNT_LOGIN_ATTEMPTS_LIMIT', '3'))
ACCOUNT_MAX_EMAIL_ADDRESSES = int(os.getenv('ACCOUNT_MAX_EMAIL_ADDRESSES', '2'))

SOCIALACCOUNT_ADAPTER = 'geonode.people.adapters.SocialAccountAdapter'
SOCIALACCOUNT_AUTO_SIGNUP = ast.literal_eval(os.environ.get('SOCIALACCOUNT_AUTO_SIGNUP', 'True'))
#This will hide or show local registration form in allauth view. True will show form
Expand Down

0 comments on commit 00f4be1

Please sign in to comment.