Update deprecated user param to username, fixes #1544

This commit is contained in:
Alexander Zobnin
2022-12-27 12:33:01 +01:00
parent cded14d9b7
commit cba2e89a06

View File

@@ -123,7 +123,7 @@ func (api *ZabbixAPI) request(ctx context.Context, method string, params ZabbixA
// Login performs API authentication and returns authentication token. // Login performs API authentication and returns authentication token.
func (api *ZabbixAPI) Login(ctx context.Context, username string, password string) (string, error) { func (api *ZabbixAPI) Login(ctx context.Context, username string, password string) (string, error) {
params := ZabbixAPIParams{ params := ZabbixAPIParams{
"user": username, "username": username,
"password": password, "password": password,
} }