summaryrefslogtreecommitdiff
path: root/meetingtools/apps
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2012-10-09 08:40:23 +0200
committerLeif Johansson <leifj@sunet.se>2012-10-09 08:40:23 +0200
commit2e2267171cf83acf2002fcc2c36ffb55b380a2ba (patch)
tree53d9485d59abbcea982de7aa0ca805943ff4e113 /meetingtools/apps
parent414bc0539b6c3f560a3df3658c522a753e97811d (diff)
- don't redirect to shib logout automatically: make
post-logout configurable with a sensible default
Diffstat (limited to 'meetingtools/apps')
-rw-r--r--meetingtools/apps/auth/views.py6
1 files changed, 5 insertions, 1 deletions
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):