PM-2795: I validated when is < 0
This commit is contained in:
@@ -193,6 +193,9 @@ class PmPdo implements \OAuth2\Storage\AuthorizationCodeInterface,
|
|||||||
$RBAC = \RBAC::getSingleton();
|
$RBAC = \RBAC::getSingleton();
|
||||||
$RBAC->initRBAC();
|
$RBAC->initRBAC();
|
||||||
$uid = $RBAC->VerifyLogin($username , $password);
|
$uid = $RBAC->VerifyLogin($username , $password);
|
||||||
|
if($uid < 0){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if($uid != ''){
|
if($uid != ''){
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user