use user= and pass= instead of auth hash

pull/1624/head
Isaac Connor 2016-06-07 15:47:59 -04:00
parent 5f76cc8677
commit 94174a1fe2
1 changed files with 2 additions and 1 deletions

View File

@ -838,7 +838,8 @@ function zmcControl( $monitor, $mode=false ) {
} else { } else {
$Server = new Server( $monitor['ServerId'] ); $Server = new Server( $monitor['ServerId'] );
$url = $Server->Url() . '/zm/api/monitors.json?auth='.generateAuthHash( $_SESSION['remoteAddr'] ); #$url = $Server->Url() . '/zm/api/monitors.json?auth='.generateAuthHash( $_SESSION['remoteAddr'] );
$url = $Server->Url() . '/zm/api/monitors.json?user='.$_SESSION['username'].'&pass='.$_SESSION['passwordHash'];
$data = array('Monitor[Function]' => $monitor['Function'] ); $data = array('Monitor[Function]' => $monitor['Function'] );
// use key 'http' even if you send the request to https://... // use key 'http' even if you send the request to https://...