better way...since the last one was broken

This commit is contained in:
DarthArgus
2016-04-24 07:01:36 +00:00
parent 38f5a50bb6
commit e2d9042667
@@ -203,7 +203,7 @@ void ClientConnection::validateClient(const std::string & id, const std::string
if (curl)
{
std::string readBuffer;
std::string postData = "user_name=" + id + "&user_password=" + key + "&stationID=" + m_stationId + "&ip=" + getRemoteAddress();
std::string postData = "user_name=" + id + "&user_password=" + key + "&stationID=" + std::to_string(m_stationId) + "&ip=" + getRemoteAddress();
curl_easy_setopt(curl, CURLOPT_URL, authURL);
curl_easy_setopt(curl, CURLOPT_POSTFIELDS, postData.c_str());