diff --git a/authentic2_idp_ltpa/middleware.py b/authentic2_idp_ltpa/middleware.py index 0c10bcb..48bec85 100644 --- a/authentic2_idp_ltpa/middleware.py +++ b/authentic2_idp_ltpa/middleware.py @@ -2,7 +2,7 @@ from . import views class LTPAMiddleware(object): def process_response(self, request, response): - if not 'logout' in request.path: + if request.path == '/' or request.path == '/login/': views.add_ltpa_token_to_response(request, response) return response