From cba2e89a06e3fe63cbe57402bacebba326afd84e Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Tue, 27 Dec 2022 12:33:01 +0100 Subject: [PATCH] Update deprecated user param to username, fixes #1544 --- pkg/zabbixapi/zabbix_api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/zabbixapi/zabbix_api.go b/pkg/zabbixapi/zabbix_api.go index e2a8132..52c5d05 100644 --- a/pkg/zabbixapi/zabbix_api.go +++ b/pkg/zabbixapi/zabbix_api.go @@ -123,7 +123,7 @@ func (api *ZabbixAPI) request(ctx context.Context, method string, params ZabbixA // Login performs API authentication and returns authentication token. func (api *ZabbixAPI) Login(ctx context.Context, username string, password string) (string, error) { params := ZabbixAPIParams{ - "user": username, + "username": username, "password": password, }