From e535ce0822f778a60062c5d12023ec3f21c973c3 Mon Sep 17 00:00:00 2001 From: thomasDOTde Date: Tue, 5 Dec 2017 00:23:10 +0100 Subject: [PATCH] fixed session check --- app/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views.py b/app/views.py index b43fd70..d6e1026 100644 --- a/app/views.py +++ b/app/views.py @@ -389,7 +389,7 @@ def clear_session(): @app.route('/logout') def logout(): - if app.config.get('SAML_ENABLED') and session['samlSessionIndex'] and app.config.get('SAML_LOGOUT'): + if app.config.get('SAML_ENABLED') and 'samlSessionIndex' in session and app.config.get('SAML_LOGOUT'): req = utils.prepare_flask_request(request) auth = utils.init_saml_auth(req) if app.config.get('SAML_LOGOUT_URL'):