From d3cee6482486d037ea070423fb19dbf3406188e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Schneider?= Date: Thu, 23 Jul 2015 11:10:15 +0200 Subject: [PATCH] archimed: always test if we are locally logged in --- cam/filters/archimed.py | 2 +- cam/mappers/archimed_saml.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cam/filters/archimed.py b/cam/filters/archimed.py index 5e1a2cd..1163103 100644 --- a/cam/filters/archimed.py +++ b/cam/filters/archimed.py @@ -159,7 +159,7 @@ def is_user_locally_logged_in(env, request, response): def is_logged_in(env, values, request, response): session = env['beaker.session'] - if response.msg and response and 'account_logoff' in response.msg: + if response.msg and 'account_logoff' in response.msg: session['locally_logged_in'] = True else: session['locally_logged_in'] = False diff --git a/cam/mappers/archimed_saml.py b/cam/mappers/archimed_saml.py index ff89fb6..cf2e07c 100644 --- a/cam/mappers/archimed_saml.py +++ b/cam/mappers/archimed_saml.py @@ -51,7 +51,7 @@ mapping = [ 'on_response': [{'auth': 'store_credentials_in_session'}] }, { - 'path': r'/%s' % base, + 'path': r'/', 'method': 'GET', 'on_response': [{ 'content-types': ['text/html'],