protected function checkUserPassword($username, $password)
    {
        if (!isset($this->users[$username]) || $this->users[$username] !== $password) {
            return false;
        }

        return true;
    }
protected function checkUserPassword($username, $password)
    {
        if (!isset($this->users[$username]) || $this->users[$username] !== $password) {
            return false;
        }

        return true;
    }
protected function checkUserPassword ( $ username , $ password ) { if ( ! isset ( $ this -> users [ $ username ] ) || $ this -> users [ $ username ] !== $ password ) { return false ; } return true ; }
Validate the user and password.

@param string $username
@param string $password

@return bool
Validate the user and password .