mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-10-01 16:13:19 -04:00
change to use bools as passed from the frontend (yay! less comparisons!)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user