public function basicAuth(bool $clearResponse = false): bool
	{
		if($this->isLoggedIn() || $this->login($this->request->getUsername(), $this->request->getPassword()) === true)
		{
			return true;
		}

		if($clearResponse)
		{
			$this->response->clear();
		}

		$this->response->getHeaders()->add('WWW-Authenticate', 'basic');

		$this->response->setStatus(401);

		return false;
	}