X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/6b780de1a5ee6c4e5acfb0cf4c8832a41e0b1a36..ec8dcdb46798724de6c0fc0dce7fdeaafe4ebe31:/wolnelektury/settings/auth.py?ds=sidebyside diff --git a/wolnelektury/settings/auth.py b/wolnelektury/settings/auth.py index 21210c074..4d3ea224a 100644 --- a/wolnelektury/settings/auth.py +++ b/wolnelektury/settings/auth.py @@ -2,9 +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 \ No newline at end of file +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')]}}