diff --git a/hc-login b/hc-login index 9add37a..1de95f0 100755 --- a/hc-login +++ b/hc-login @@ -136,7 +136,7 @@ while True: # get the ReturnUrl from the response query = parse_qs(urlparse(preauth_url).query) -return_url = query["returnUrl"][0] +return_url = query["ReturnUrl"][0] debug(f"{return_url=}") if "X-CSRF-FORM-TOKEN" in r.cookies: