fix: missing step 1 in config_connect()

The "Connection to PSA" page was not showing step 1 with the link to
Opel login page due to a type error. As parse_qs() returns a list, we
have to use first element.

Fixes #808
This commit is contained in:
Gernot Hillier
2024-03-09 08:46:09 +01:00
parent d647a982f4
commit 4e48aeb63a
+1 -1
View File
@@ -77,7 +77,7 @@ def display_page(pathname, search):
elif pathname == "/config_login":
page = config_layout("login")
elif pathname == "/config_connect":
page = get_oauth_config_layout(query_params["url"])
page = get_oauth_config_layout(query_params["url"][0])
elif pathname == "/log":
page = log_layout()
elif not APP.is_good: