/** * authenticate the request * * @return Zend_Auth_Response */ public function authenticate() { //authenticate the user $this->_authAdapter->setIdentity($this->_username); $this->_authAdapter->setCredential($this->_password); $result = $this->_authAdapter->authenticate(); if ($result->isValid()) { //save the user and return the result $row = $this->_authAdapter->getResultRowObject($this->_resultRowColumns); $this->_storage->user = $row; return $result; } }