fix for issue #24
This commit is contained in:
parent
b6bd1551ca
commit
a825e2c29d
|
@ -24,7 +24,7 @@ $resp = array("error" => "Unknown error", "message" => "An unknown error has occ
|
||||||
// get information on user associated to the token
|
// get information on user associated to the token
|
||||||
$info_oauth = $server->getAccessTokenData(OAuth2\Request::createFromGlobals());
|
$info_oauth = $server->getAccessTokenData(OAuth2\Request::createFromGlobals());
|
||||||
$user = $info_oauth["user_id"];
|
$user = $info_oauth["user_id"];
|
||||||
$assoc_id = $info_oauth["assoc_id"];
|
$assoc_id = intval($info_oauth["assoc_id"]);
|
||||||
|
|
||||||
// Open a LDAP connection
|
// Open a LDAP connection
|
||||||
$ldap = new LDAP($hostname,$port,$ldap_version);
|
$ldap = new LDAP($hostname,$port,$ldap_version);
|
||||||
|
@ -46,4 +46,4 @@ catch (Exception $e)
|
||||||
}
|
}
|
||||||
|
|
||||||
// send data or error message in JSON format
|
// send data or error message in JSON format
|
||||||
echo json_encode($resp);
|
echo json_encode($resp);
|
||||||
|
|
Loading…
Reference in New Issue