_prefs and isa($this, "_OpenIDPassUser")) { if ($prefs) $this->_prefs = $prefs; if (!isset($this->_prefs->_method)) _PassUser::_PassUser($UserName); } $this->_userid = $UserName; return $this; } function userExists() { if (!$this->isValidName($this->_userid)) { return $this->_tryNextUser(); } $this->_authmethod = 'OpenID'; return $this->_tryNextUser(); } // no quotes and shorter than 128 function isValidName() { if (!$this->_userid) return false; return !preg_match('/[\"\']/', $this->_userid) and strlen($this->_userid) < 128; } } // Local Variables: // mode: php // tab-width: 8 // c-basic-offset: 4 // c-hanging-comment-ender-p: nil // indent-tabs-mode: nil // End: ?>