function auth($password) { $agent = new lmbWebAgent($this->request); $agent->getValues()->import(array('url' => 'http://' . $this->project, 'password' => $password, 'ok' => ' ok ')); $agent->doRequest($this->getProjectUrl(), 'POST', 0); $agent->getCookies()->copyTo($this->cookies); }