25 if(!isset($users[$this->username]))
26 $this->errorCode=self::ERROR_USERNAME_INVALID;
27 elseif($users[$this->username]!==$this->password)
28 $this->errorCode=self::ERROR_PASSWORD_INVALID;
30 $this->errorCode=self::ERROR_NONE;
31 return !$this->errorCode;