configure django-allauth

This commit is contained in:
Martin Pépin 2018-10-15 00:37:56 +02:00
parent ac9d45782e
commit 8271c3a1c6
No known key found for this signature in database
GPG key ID: E7520278B1774448

View file

@ -2,6 +2,7 @@ import os
import sys
from django.core.urlresolvers import reverse_lazy
from django.contrib.messages import constants as messages
try:
from . import secret
@ -171,6 +172,13 @@ ACCOUNT_AUTHENTICATED_LOGIN_REDIRECTS = False
ACCOUNT_HOME_URL = HOME_URL
ACCOUNT_USER_DISPLAY = user_display
SOCIALACCOUNT_PROVIDERS = {
'clipper': {
'MESSAGE_SUGGEST_LOGOUT_ON_LOGOUT': True,
'MESSAGE_SUGGEST_LOGOUT_ON_LOGOUT_LEVEL': messages.INFO,
},
}
# Static / media contents