示例#1
0
 /**
  * Attempts authentication of the signature
  *
  * @author KnowledgeTree Team
  * @access private
  * @param string $username The user's username
  * @param string $password The user's password
  * @param string $comment A comment on the action performed
  * @param string $action The action performed
  * @param string $details Details about the action performed
  * @return bool True if authenticated | False if rejected
  */
 private function _authenticateSignature($username, $password, $comment, $action, $details)
 {
     $eSignature = new ESignature('api');
     $result = $eSignature->sign($username, $password, $comment, $action, $details);
     if (!$result) {
         $this->esig_error = $eSignature->getError();
     }
     return $result;
 }