src/Service/authService.php
protected function authDBUser($userName, $password)
    {
        $boAuth = Openbizx::getObject($this->authticationDataObj);
        if (!$boAuth)
            return false;
        $searchRule = "[login]='$userName'";
        $recordList = array();
        $boAuth->fetchRecords($searchRule, $recordList, 1);

        $encType 	 = $recordList[0]["enctype"];
        $realPassword = $recordList[0]["password"];
        if ($this->checkPassword($encType,$password,$realPassword))
            return true;

        return false;
    }
protected function authDBUser($userName, $password)
    {
        $boAuth = Openbizx::getObject($this->authticationDataObj);
        if (!$boAuth)
            return false;
        $searchRule = "[login]='$userName'";
        $recordList = array();
        $boAuth->fetchRecords($searchRule, $recordList, 1);

        $encType 	 = $recordList[0]["enctype"];
        $realPassword = $recordList[0]["password"];
        if ($this->checkPassword($encType,$password,$realPassword))
            return true;

        return false;
    }
Authenticate User that stored in database

@param string $userName
@param string $password
@return boolean