Update deprecated user param to username, fixes #1544
This commit is contained in:
@@ -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,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user