enable auth providers

This commit is contained in:
Oliver Marks 2017-02-26 20:47:48 +00:00
parent c4bfaf01d5
commit db212d90de
1 changed files with 4 additions and 0 deletions

View File

@ -36,6 +36,9 @@ THIRD_PARTY_APPS = (
'allauth', # registration 'allauth', # registration
'allauth.account', # registration 'allauth.account', # registration
'allauth.socialaccount', # registration 'allauth.socialaccount', # registration
'allauth.socialaccount.providers.google', # registration
'allauth.socialaccount.providers.github', # registration
'allauth.socialaccount.providers.facebook', # registration
'stdimage', 'stdimage',
'rest_framework', 'rest_framework',
) )
@ -240,6 +243,7 @@ ACCOUNT_EMAIL_VERIFICATION = 'mandatory'
ACCOUNT_ALLOW_REGISTRATION = env.bool('DJANGO_ACCOUNT_ALLOW_REGISTRATION', True) ACCOUNT_ALLOW_REGISTRATION = env.bool('DJANGO_ACCOUNT_ALLOW_REGISTRATION', True)
ACCOUNT_ADAPTER = 'mhackspace.users.adapters.AccountAdapter' ACCOUNT_ADAPTER = 'mhackspace.users.adapters.AccountAdapter'
SOCIALACCOUNT_ADAPTER = 'mhackspace.users.adapters.SocialAccountAdapter' SOCIALACCOUNT_ADAPTER = 'mhackspace.users.adapters.SocialAccountAdapter'
SOCIALACCOUNT_QUERY_EMAIL = True
# Custom user app defaults # Custom user app defaults
# Select the correct user model # Select the correct user model