Skip to content

Commit

Permalink
Update class_zabbix.php
Browse files Browse the repository at this point in the history
Fixes mattiasgeniar#44 from main
  • Loading branch information
MASantangelo committed Apr 16, 2015
1 parent 1dcb908 commit 05fb94a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion class_zabbix.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ public function getLastError()

public function Login()
{
$result = $this->sendRequest("user.authenticate", array("user" => $this->getUsername(), "password" => $this->getPassword()));
// Fixes auth in Zabbix 2.4
$result = $this->sendRequest("user.login", array("user" => $this->getUsername(), "password" => $this->getPassword()));

//$result = $this->decodeJson($json_login);
if (isset($result->result))
Expand Down

0 comments on commit 05fb94a

Please sign in to comment.