Fix VAG login (#5264)
New fields are in the returned HTML that have to be quoted
This commit is contained in:
parent
c87df312c5
commit
31965b0059
1 changed files with 1 additions and 1 deletions
|
|
@ -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"} {
|
||||
for _, v := range []string{"templateModel", "currentLocale", "csrf_parameterName", "csrf_token", "userSession", "userId", "countryOfResidence"} {
|
||||
tmpl = strings.Replace(tmpl, v, fmt.Sprintf(`"%s"`, v), 1)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue