forked from ScoDoc/ScoDoc
Fix: logout CAS si CAS_AFTER_LOGOUT non positionné
This commit is contained in:
parent
0037bf9f3a
commit
1f230b2d13
@ -87,8 +87,8 @@ def logout():
|
|||||||
flask.session.pop(cas_token_session_key, None) # added by EV
|
flask.session.pop(cas_token_session_key, None) # added by EV
|
||||||
flask.session.pop("CAS_EDT_ID", None) # added by EV
|
flask.session.pop("CAS_EDT_ID", None) # added by EV
|
||||||
|
|
||||||
cas_after_logout = current_app.config["CAS_AFTER_LOGOUT"]
|
cas_after_logout = current_app.config.get("CAS_AFTER_LOGOUT")
|
||||||
if cas_after_logout is not None:
|
if cas_after_logout:
|
||||||
# If config starts with http, use it as dest URL.
|
# If config starts with http, use it as dest URL.
|
||||||
# Else, build Flask URL
|
# Else, build Flask URL
|
||||||
dest_url = (
|
dest_url = (
|
||||||
|
Loading…
Reference in New Issue
Block a user