X-Git-Url: https://git.pterodactylus.net/?p=fms.git;a=blobdiff_plain;f=src%2Fhttp%2Fipagehandler.cpp;h=1ec7947dbba72488785cdd4085377b8082dd56a1;hp=560c9123758a7a725c39ef06c9ed1f0e4a6aa09e;hb=59a5414ec47a2932a7802fcd1d98c4d80166564f;hpb=4e96d123460d6363cf7274e36bd9357768eb86ad diff --git a/src/http/ipagehandler.cpp b/src/http/ipagehandler.cpp index 560c912..1ec7947 100644 --- a/src/http/ipagehandler.cpp +++ b/src/http/ipagehandler.cpp @@ -1,7 +1,6 @@ #include "../../include/http/ipagehandler.h" #include "../../include/stringfunctions.h" #include "../../include/http/multipartparser.h" -#include "../../include/db/sqlite3db.h" #include #include @@ -54,7 +53,7 @@ const std::string IPageHandler::CreateFormPassword() { } - SQLite3DB::Statement st=SQLite3DB::DB::Instance()->Prepare("INSERT INTO tmpFormPassword(Date,Password) VALUES(?,?);"); + SQLite3DB::Statement st=m_db->Prepare("INSERT INTO tmpFormPassword(Date,Password) VALUES(?,?);"); st.Bind(0,Poco::DateTimeFormatter::format(date,"%Y-%m-%d %H:%M:%S")); st.Bind(1,uuid.toString()); st.Step(); @@ -167,14 +166,14 @@ const bool IPageHandler::ValidateFormPassword(const std::mapPrepare("DELETE FROM tmpFormPassword WHERE DatePrepare("DELETE FROM tmpFormPassword WHERE Date::const_iterator i=vars.find("formpassword"); if(i!=vars.end()) { - st=SQLite3DB::DB::Instance()->Prepare("SELECT COUNT(*) FROM tmpFormPassword WHERE Password=?;"); + st=m_db->Prepare("SELECT COUNT(*) FROM tmpFormPassword WHERE Password=?;"); st.Bind(0,(*i).second); st.Step(); if(st.RowReturned())