Minor fixes.
[wolnelektury.git] / wolnelektury / settings / auth.py
1 AUTHENTICATION_BACKENDS = [
2     'django.contrib.auth.backends.ModelBackend',
3     'allauth.account.auth_backends.AuthenticationBackend',
4 ]
5 ACCOUNT_EMAIL_CONFIRMATION_EXPIRE_DAYS = 2
6 LOGIN_URL = '/uzytkownik/login/'
7
8 LOGIN_REDIRECT_URL = '/'
9
10 SOCIALACCOUNT_AUTO_SIGNUP = False
11 SOCIALACCOUNT_QUERY_EMAIL = True
12
13
14 SOCIALACCOUNT_PROVIDERS = \
15     { 'openid':
16         { 'SERVERS':
17             [dict(id='google',
18                   name='Google',
19                   openid_url='https://www.google.com/accounts/o8/id')]}}