rename PUBLIC_URL to a more meaningful variable name
This commit is contained in:
parent
a7fb3ab28d
commit
2564f3aae6
4 changed files with 5 additions and 5 deletions
|
|
@ -176,13 +176,13 @@ def auth():
|
|||
# The redirect URL is back to this page (auth) with the same challenge
|
||||
# so we can pickup the flow where we left off.
|
||||
if not identity:
|
||||
url = PUBLIC_URL + "/auth?login_challenge=" + challenge
|
||||
url = LOGIN_PANEL_URL + "/auth?login_challenge=" + challenge
|
||||
url = urllib.parse.quote_plus(url)
|
||||
|
||||
current_app.logger.info("Redirecting to login. Setting flow_state cookies")
|
||||
current_app.logger.info("auth_url: " + url)
|
||||
|
||||
response = redirect(PUBLIC_URL + "/login")
|
||||
response = redirect(LOGIN_PANEL_URL + "/login")
|
||||
response.set_cookie('flow_state', 'auth')
|
||||
response.set_cookie('auth_url', url)
|
||||
return response
|
||||
|
|
|
|||
Reference in a new issue