From 8271c3a1c64758816907bef43ed0da962a565bf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20P=C3=A9pin?= Date: Mon, 15 Oct 2018 00:37:56 +0200 Subject: [PATCH] configure django-allauth --- WikiENS/settings/common.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/WikiENS/settings/common.py b/WikiENS/settings/common.py index e64923c..ad522ac 100644 --- a/WikiENS/settings/common.py +++ b/WikiENS/settings/common.py @@ -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