public function authenticate($login, $password)
    {
        if (!isset($this->server['PHP_AUTH_USER'])) {
            $this->forbid();
            return false;
        } else {
            if (($this->server['PHP_AUTH_USER'] == $login) && ($this->server['PHP_AUTH_PW'] == $password)) {
                return true;
            } else {
                $this->forbid();
                return false;
            }
        }
    }