X-Git-Url: https://git.mdrn.pl/django-cas-provider.git/blobdiff_plain/087a24803f4e6749a5c32a88c62fcb922290635d..58ced7c998424be00d9a0aa7db4c9aed14fdd730:/cas_provider/views.py?ds=inline diff --git a/cas_provider/views.py b/cas_provider/views.py index d738dcd..c9a44db 100644 --- a/cas_provider/views.py +++ b/cas_provider/views.py @@ -79,7 +79,8 @@ def validate(request): 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)