mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-09 23:20:27 +00:00
cleaup after merged pr
This commit is contained in:
parent
21e903fa76
commit
050b822636
@ -400,7 +400,6 @@ def logout():
|
|||||||
session_index = session['samlSessionIndex'],
|
session_index = session['samlSessionIndex'],
|
||||||
name_id=session['samlNameId']))
|
name_id=session['samlNameId']))
|
||||||
clear_session()
|
clear_session()
|
||||||
redirect_url = url_for('login')
|
|
||||||
return redirect(url_for('login'))
|
return redirect(url_for('login'))
|
||||||
|
|
||||||
@app.route('/saml/sls')
|
@app.route('/saml/sls')
|
||||||
@ -413,10 +412,8 @@ def saml_logout():
|
|||||||
clear_session()
|
clear_session()
|
||||||
if url is not None:
|
if url is not None:
|
||||||
return redirect(url)
|
return redirect(url)
|
||||||
elif app.config.get('SAML_LOGOUT_URL'):
|
elif app.config.get('SAML_LOGOUT_URL'):
|
||||||
return redirect(app.config.get('SAML_LOGOUT_URL'))
|
return redirect(app.config.get('SAML_LOGOUT_URL'))
|
||||||
else:
|
|
||||||
return redirect(url_for('index'))
|
|
||||||
else:
|
else:
|
||||||
return render_template('errors/SAML.html', errors=errors)
|
return render_template('errors/SAML.html', errors=errors)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user