am newin yii. i desparately need to remove the default yii user management. I have created the user table on my database. have the model in place and the crud components are ready. useridentity code looks like
$users= User::model()->findByAttributes(array(‘username’=>$this->username));
        if($users===null) {
            $this->errorCode = self::ERROR_USERNAME_INVALID;                
        }
        else if(!$users->validatePassword($this->password)) {
            $this->errorCode = self::ERROR_PASSWORD_INVALID;
        }
        else {           
            $this->errorCode = self::ERROR_NONE;
            $this->_id = $users->id;
        }
        return !$this->errorCode;
    }
    
    public function getId() {
        return $this->_id;
    }
please assist