code cleaning

This commit is contained in:
Emmanuel Viennet 2023-03-16 12:47:25 +01:00
parent 2393a872a5
commit e27a340c06

View File

@ -64,7 +64,7 @@ def login():
else: else:
flask.session.pop(cas_token_session_key, None) flask.session.pop(cas_token_session_key, None)
current_app.logger.debug("Redirecting to: {0}".format(redirect_url)) current_app.logger.debug("Redirecting to: {redirect_url}")
return flask.redirect(redirect_url) return flask.redirect(redirect_url)
@ -100,11 +100,9 @@ def logout():
dest_url, dest_url,
) )
else: else:
redirect_url = create_cas_logout_url( redirect_url = create_cas_logout_url(current_app.config["CAS_SERVER"], None)
current_app.config["CAS_SERVER"], current_app.config["CAS_LOGOUT_ROUTE"]
)
current_app.logger.debug("Redirecting to: {0}".format(redirect_url)) current_app.logger.debug(f"Redirecting to: {redirect_url}")
return flask.redirect(redirect_url) return flask.redirect(redirect_url)