From 63d49f04f61616d63d97fbaaafb67778bfd67013 Mon Sep 17 00:00:00 2001 From: startyourday60 <116428444+startyourday60@users.noreply.github.com> Date: Thu, 5 Jan 2023 06:58:43 +0300 Subject: [PATCH] Update Client.cpp --- src/server/poolserver/Stratum/Client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/poolserver/Stratum/Client.cpp b/src/server/poolserver/Stratum/Client.cpp index b765f67..0dc2ee9 100644 --- a/src/server/poolserver/Stratum/Client.cpp +++ b/src/server/poolserver/Stratum/Client.cpp @@ -303,7 +303,7 @@ namespace Stratum std::string username = msg["params"][0].GetString(); std::string password = msg["params"][1].GetString(); - MySQL::QueryResult result = sDatabase.Query(Util::FS("SELECT `id`, `mindiff` FROM `pool_worker` WHERE `username` = '%s' and `password` = '%s'", sDatabase.Escape(username).c_str(), sDatabase.Escape(password).c_str()).c_str()); + MySQL::QueryResult result = sDatabase.Query(Util::FS("SELECT `account_id`, `mindiff` FROM `pool_worker` WHERE `username` = '%s' and `password` = '%s'", sDatabase.Escape(username).c_str(), sDatabase.Escape(password).c_str()).c_str()); if (result) { _workers.insert(username);