Skip to content

Commit c464555

Browse files
authored
Merge pull request #11 from minet/master
Add support of zabbix 6.4 user auth
2 parents 476d3a5 + a3d1345 commit c464555

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/SimpleZabbixApi.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ function request($method, $params) {
4444
function auth($username, $password) {
4545
if (is_null($password)) {
4646
$login_params = array(
47-
'user' => $username
47+
'username' => $username
4848
);
4949
} else {
5050
$login_params = array(
51-
'user' => $username,
51+
'username' => $username,
5252
'password' => $password
5353
);
5454
}

0 commit comments

Comments
 (0)