VAG: fix login
Some checks failed
Release / call-build-workflow (push) Has been cancelled
Release / Publish Docker :release (push) Has been cancelled
Release / Github & APT (push) Has been cancelled
Release / Demo (push) Has been cancelled
Release / Hassio Addon (push) Has been cancelled

This commit is contained in:
andig 2023-02-03 09:54:49 +01:00
parent b0bcafdc5e
commit 74c9322a77

View file

@ -83,7 +83,7 @@ func ParseCredentialsPage(r io.ReadCloser) (CredentialParams, error) {
match := re.FindAllStringSubmatch(buf.String(), -1)
tmpl := strings.ReplaceAll(match[0][1], `'`, `"`)
for _, v := range []string{"templateModel", "currentLocale", "csrf_parameterName", "csrf_token", "userSession", "userId", "countryOfResidence"} {
for _, v := range []string{"templateModel", "currentLocale", "csrf_parameterName", "csrf_token", "userSession", "userId", "countryOfResidence", "baseUrl", "consentBaseUrl"} {
tmpl = strings.Replace(tmpl, v, fmt.Sprintf(`"%s"`, v), 1)
}