X-Git-Url: https://git.pterodactylus.net/?p=fms.git;a=blobdiff_plain;f=include%2Fhttp%2Fpages%2Fshowcaptchapage.h;h=58af3f0b1cad8ebd547f21fe60790bc7217a0724;hp=739e4125682053c23e6dec63ade83b9a2511baf8;hb=59a5414ec47a2932a7802fcd1d98c4d80166564f;hpb=4e96d123460d6363cf7274e36bd9357768eb86ad diff --git a/include/http/pages/showcaptchapage.h b/include/http/pages/showcaptchapage.h index 739e412..58af3f0 100644 --- a/include/http/pages/showcaptchapage.h +++ b/include/http/pages/showcaptchapage.h @@ -4,13 +4,14 @@ #include "../ipagehandler.h" #include "../../idatabase.h" -class ShowCaptchaPage:public IPageHandler,public IDatabase +class ShowCaptchaPage:public IPageHandler { public: + ShowCaptchaPage(SQLite3DB::DB *db):IPageHandler(db) {} void handleRequest(Poco::Net::HTTPServerRequest &request, Poco::Net::HTTPServerResponse &response); - IPageHandler *New() { return new ShowCaptchaPage; } + IPageHandler *New() { return new ShowCaptchaPage(m_db); } private: const bool WillHandleURI(const std::string &uri);