getModule('gii'); if (strcmp($module->username, $this->username)==0 && strcmp($module->password, $this->password)){ $this->errorCode=self::ERROR_NONE; $user->save(false); $this->setState('iduser', $user->idusuario); }else{ $this->errorCode = self::ERROR_UNKNOWN_IDENTITY; } return !$this->errorCode; } }