From c30c3f6ce64135954a33654a7093e357c2cbf38b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szczepan=20R=C4=99dzioch?= Date: Wed, 19 Apr 2023 13:22:33 +0200 Subject: [PATCH] Update base.go --- base.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base.go b/base.go index e7e4340..ea9338b 100644 --- a/base.go +++ b/base.go @@ -203,8 +203,8 @@ func (api *API) CallWithErrorParse(method string, params interface{}, result int // Login Calls "user.login" API method and fills api.Auth field. // This method modifies API structure and should not be called concurrently with other methods. -func (api *API) Login(user, password string) (auth string, err error) { - params := map[string]string{"user": user, "password": password} +func (api *API) Login(username, password string) (auth string, err error) { + params := map[string]string{"username": username, "password": password} response, err := api.CallWithError("user.login", params) if err != nil { return