params) parent::post($request); if(!$this-> isLoggedIn()) { if($sessionid = $GLOBALS['phpgw']->session->create($this->getParam('user'), $this->getParam('password'))) { $result = array( 'auth' => $sessionid.":".$GLOBALS['phpgw']->session->kp3, 'profile' => array($this->getUserProfile()) ); $this->setError(false); $this->setResult($result); } else { $this->setError($GLOBALS['phpgw']->session->cd_reason); } } else { $result = array('auth' => $this->getParam('auth')); $this->setResult($result); } //to Send Response (JSON RPC format) return $this->getResponse(); } }