fnp
/
django-cas-provider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Restore Py2.5 compatibility
[django-cas-provider.git]
/
cas_provider
/
views.py
diff --git
a/cas_provider/views.py
b/cas_provider/views.py
index
d738dcd
..
c9a44db
100644
(file)
--- a/
cas_provider/views.py
+++ b/
cas_provider/views.py
@@
-79,7
+79,8
@@
def validate(request):
return HttpResponse("no\n\n")
return HttpResponse("no\n\n")
-def logout(request, template_name='cas/logout.html', auto_redirect=False):
+def logout(request, template_name='cas/logout.html', \
+ auto_redirect=settings.CAS_AUTO_REDIRECT_AFTER_LOGOUT):
url = request.GET.get('url', None)
if request.user.is_authenticated():
auth_logout(request)
url = request.GET.get('url', None)
if request.user.is_authenticated():
auth_logout(request)