forgot password demo

would i get forgot password demo…?? i tried steps which i got on yii site but not getting properly…

The password for the user demo is usually stored in the method authenticate() from UserIdentity class:


	public function authenticate()

	{

		$users=array(

			// username => password

			'demo'=>'demo',

			'admin'=>'admin',

		);

		if(!isset($users[$this->username]))

			$this->errorCode=self::ERROR_USERNAME_INVALID;

		else if($users[$this->username]!==$this->password)

			$this->errorCode=self::ERROR_PASSWORD_INVALID;

		else

			$this->errorCode=self::ERROR_NONE;

		return !$this->errorCode;

	} 

thanx… can anyone help me out with the steps of forgot password… i think i am missing somthing in my process…