middleware: do not add the LTPA token if in a logout URL
This commit is contained in:
parent
7cf177daf8
commit
db8868ce85
|
@ -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
|
||||
|
||||
|
|
Reference in New Issue