rename PUBLIC_URL to a more meaningful variable name

This commit is contained in:
Maarten de Waard 2022-04-04 14:31:17 +02:00
parent a7fb3ab28d
commit 2564f3aae6
No known key found for this signature in database
GPG key ID: 1D3E893A657CC8DA
4 changed files with 5 additions and 5 deletions

View file

@ -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