From 2e2267171cf83acf2002fcc2c36ffb55b380a2ba Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Tue, 9 Oct 2012 08:40:23 +0200 Subject: - don't redirect to shib logout automatically: make post-logout configurable with a sensible default --- meetingtools/apps/auth/views.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'meetingtools/apps') diff --git a/meetingtools/apps/auth/views.py b/meetingtools/apps/auth/views.py index ee23df3..fd1d22a 100644 --- a/meetingtools/apps/auth/views.py +++ b/meetingtools/apps/auth/views.py @@ -50,7 +50,11 @@ def _is_member_or_employee(user): @never_cache def logout(request): auth.logout(request) - return HttpResponseRedirect('/Shibboleth.sso/Logout') + post_logout= "/" + if hasattr(settings,'POST_LOGOUT'): + post_logout = settings.POST_LOGOUT + + return HttpResponseRedirect(post_logout) @never_cache def login(request): -- cgit v1.1