From 050b82263653834c23691628f179070aebd317ad Mon Sep 17 00:00:00 2001 From: thomasDOTde Date: Tue, 5 Dec 2017 12:59:08 +0100 Subject: [PATCH] cleaup after merged pr --- app/views.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/views.py b/app/views.py index 254bf74..ed6f791 100644 --- a/app/views.py +++ b/app/views.py @@ -400,7 +400,6 @@ def logout(): session_index = session['samlSessionIndex'], name_id=session['samlNameId'])) clear_session() - redirect_url = url_for('login') return redirect(url_for('login')) @app.route('/saml/sls') @@ -413,10 +412,8 @@ def saml_logout(): clear_session() if url is not None: return redirect(url) - elif app.config.get('SAML_LOGOUT_URL'): - return redirect(app.config.get('SAML_LOGOUT_URL')) - else: - return redirect(url_for('index')) + elif app.config.get('SAML_LOGOUT_URL'): + return redirect(app.config.get('SAML_LOGOUT_URL')) else: return render_template('errors/SAML.html', errors=errors)