X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/e5e8226c4d4bd610de5983e69b1b13684a17fe75..734825a449339a268dd9dfe71f1ad7b565115c1c:/wolnelektury/settings/auth.py diff --git a/wolnelektury/settings/auth.py b/wolnelektury/settings/auth.py index 3b703bce4..4d3ea224a 100644 --- a/wolnelektury/settings/auth.py +++ b/wolnelektury/settings/auth.py @@ -2,10 +2,18 @@ AUTHENTICATION_BACKENDS = [ 'django.contrib.auth.backends.ModelBackend', 'allauth.account.auth_backends.AuthenticationBackend', ] -EMAIL_CONFIRMATION_DAYS = 2 +ACCOUNT_EMAIL_CONFIRMATION_EXPIRE_DAYS = 2 LOGIN_URL = '/uzytkownik/login/' LOGIN_REDIRECT_URL = '/' SOCIALACCOUNT_AUTO_SIGNUP = False SOCIALACCOUNT_QUERY_EMAIL = True + + +SOCIALACCOUNT_PROVIDERS = \ + { 'openid': + { 'SERVERS': + [dict(id='google', + name='Google', + openid_url='https://www.google.com/accounts/o8/id')]}}