src/Session.php
private function passChallenge($username)
    {
        $getdata = [
            'operation' => 'getchallenge',
            'username'  => $username
        ];
        $result = $this->sendHttpRequest($getdata, 'GET');
        
        if (!is_array($result) || !isset($result[ 'token' ])) {
            return false;
        }

        $this->serviceExpireTime = $result[ 'expireTime' ];
        $this->serviceToken = $result[ 'token' ];

        return true;
    }
private function passChallenge($username)
    {
        $getdata = [
            'operation' => 'getchallenge',
            'username'  => $username
        ];
        $result = $this->sendHttpRequest($getdata, 'GET');
        
        if (!is_array($result) || !isset($result[ 'token' ])) {
            return false;
        }

        $this->serviceExpireTime = $result[ 'expireTime' ];
        $this->serviceToken = $result[ 'token' ];

        return true;
    }
private function passChallenge ( $ username ) { $ getdata = [ 'operation' => 'getchallenge' , 'username' => $ username ] ; $ result = $ this -> sendHttpRequest ( $ getdata , 'GET' ) ; if ( ! is_array ( $ result ) || ! isset ( $ result [ 'token' ] ) ) { return false ; } $ this -> serviceExpireTime = $ result [ 'expireTime' ] ; $ this -> serviceToken = $ result [ 'token' ] ; return true ; }
Gets a challenge token from the server and stores for future requests
@access private
@param  string $username VTiger user name
@return boolean Returns false in case of failure
Gets a challenge token from the server and stores for future requests