diff --git a/engine/server/application/CentralServer/src/shared/CentralServer.cpp b/engine/server/application/CentralServer/src/shared/CentralServer.cpp index e9f3e102..f9feb1d9 100755 --- a/engine/server/application/CentralServer/src/shared/CentralServer.cpp +++ b/engine/server/application/CentralServer/src/shared/CentralServer.cpp @@ -2877,9 +2877,9 @@ void CentralServer::sendMetricsToWebAPI() #ifdef _DEBUG if (api.submit()) { - std::string status = api.getRespValue("status"); + bool status = api.getRespValue("status"); - if (status.empty() || status != "success") + if (status) { std::string message = api.getRespValue("message"); diff --git a/engine/server/application/LoginServer/src/shared/ClientConnection.cpp b/engine/server/application/LoginServer/src/shared/ClientConnection.cpp index 70830379..52425044 100755 --- a/engine/server/application/LoginServer/src/shared/ClientConnection.cpp +++ b/engine/server/application/LoginServer/src/shared/ClientConnection.cpp @@ -192,10 +192,10 @@ void ClientConnection::validateClient(const std::string & id, const std::string if (api.submit()) { - std::string status = api.getRespValue("status"); + bool status = api.getRespValue("status"); uname = api.getRespValue("username"); - if (!status.empty() && status == "success" && !uname.empty()) + if (status && !uname.empty()) { authOK = true; }