change to use bools as passed from the frontend (yay! less comparisons!)

This commit is contained in:
DarthArgus
2016-09-26 06:24:20 +00:00
parent 268727ce16
commit 06925a9219
2 changed files with 4 additions and 4 deletions
@@ -192,10 +192,10 @@ void ClientConnection::validateClient(const std::string & id, const std::string
if (api.submit())
{
std::string status = api.getRespValue<std::string>("status");
bool status = api.getRespValue<bool>("status");
uname = api.getRespValue<std::string>("username");
if (!status.empty() && status == "success" && !uname.empty())
if (status && !uname.empty())
{
authOK = true;
}