From 6eda5fdb636cca4491e09116c03b07edb82abcf6 Mon Sep 17 00:00:00 2001 From: andig Date: Sun, 4 Jul 2021 11:40:31 +0200 Subject: [PATCH] Hyundai: fix login after server change --- vehicle/bluelink/identity.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vehicle/bluelink/identity.go b/vehicle/bluelink/identity.go index 29415eb0d..0c76d4746 100644 --- a/vehicle/bluelink/identity.go +++ b/vehicle/bluelink/identity.go @@ -208,7 +208,7 @@ func (v *Identity) brandLogin(cookieClient *request.Helper, user, password strin if err == nil { defer resp.Body.Close() - userId = resp.Request.URL.Query().Get("userId") + userId = resp.Request.URL.Query().Get("intUserId") if len(userId) == 0 { err = errors.New("usedId not found") } @@ -218,7 +218,7 @@ func (v *Identity) brandLogin(cookieClient *request.Helper, user, password strin var code string if err == nil { data := map[string]string{ - "userId": userId, + "intUserId": userId, } req, err = request.New(http.MethodPost, v.config.URI+SilentSigninURL, request.MarshalJSON(data), request.JSONEncoding)