Browse Source

Update Client.cpp

pull/1/head
startyourday60 2 years ago committed by GitHub
parent
commit
63d49f04f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/server/poolserver/Stratum/Client.cpp

2
src/server/poolserver/Stratum/Client.cpp

@ -303,7 +303,7 @@ namespace Stratum @@ -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);

Loading…
Cancel
Save