middleware: do not add the LTPA token if in a logout URL

This commit is contained in:
Benjamin Dauvergne 2014-04-22 14:28:39 +02:00
parent 7cf177daf8
commit db8868ce85
1 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@ from . import views
class LTPAMiddleware(object):
def process_response(self, request, response):
views.add_ltpa_token_to_response(request, response)
if not 'logout' in request.path:
views.add_ltpa_token_to_response(request, response)
return response