From 1865054c29aa5dc8842b00388641a7ce29f73cca Mon Sep 17 00:00:00 2001 From: Qwann Date: Thu, 22 Nov 2018 13:24:59 +0100 Subject: [PATCH] waaaa, maintenant on peut genre se connecter --- poulpe/settings/common.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/poulpe/settings/common.py b/poulpe/settings/common.py index 5d458b6..52b82ea 100644 --- a/poulpe/settings/common.py +++ b/poulpe/settings/common.py @@ -186,11 +186,12 @@ SITE_ID = 1 CAS_SERVER_URL = "https://cas.eleves.ens.fr/" # SPI CAS CAS_VERIFY_URL = "https://cas.eleves.ens.fr/" +CAS_VERSION = "2" CAS_IGNORE_REFERER = True +CAS_LOGIN_MSG = None CAS_REDIRECT_URL = reverse_lazy('shared:home') CAS_EMAIL_FORMAT = "%s@clipper.ens.fr" CAS_FORCE_CHANGE_USERNAME_CASE = "lower" -CAS_VERSION = 'CAS_2_SAML_1_0' LOGIN_URL = reverse_lazy('account_login') LOGOUT_URL = reverse_lazy('account_logout') @@ -214,4 +215,6 @@ SOCIALACCOUNT_PROVIDERS = { ACCOUNT_ADAPTER = 'shared.allauth_adapter.AccountAdapter' -SOCIALACCOUNT_ADAPTER='allauth_ens.adapter.LongTermClipperAccountAdapter' +#SOCIALACCOUNT_ADAPTER='allauth_ens.adapter.LongTermClipperAccountAdapter' +SOCIALACCOUNT_ADAPTER= 'shared.allauth_adapter.SocialAccountAdapter' +