forked from ScoDoc/ScoDoc
code cleaning
This commit is contained in:
parent
2393a872a5
commit
e27a340c06
@ -64,7 +64,7 @@ def login():
|
||||
else:
|
||||
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)
|
||||
|
||||
@ -100,11 +100,9 @@ def logout():
|
||||
dest_url,
|
||||
)
|
||||
else:
|
||||
redirect_url = create_cas_logout_url(
|
||||
current_app.config["CAS_SERVER"], current_app.config["CAS_LOGOUT_ROUTE"]
|
||||
)
|
||||
redirect_url = create_cas_logout_url(current_app.config["CAS_SERVER"], None)
|
||||
|
||||
current_app.logger.debug("Redirecting to: {0}".format(redirect_url))
|
||||
current_app.logger.debug(f"Redirecting to: {redirect_url}")
|
||||
return flask.redirect(redirect_url)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user