From 99a267b59f6bc0d6844964495925057fc429b7d7 Mon Sep 17 00:00:00 2001 From: DarthArgus Date: Sun, 17 Apr 2016 22:26:56 +0000 Subject: [PATCH] add ip address and station id to our request so we can alias them in the db on the php side (todo) --- .../application/LoginServer/src/shared/ClientConnection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/server/application/LoginServer/src/shared/ClientConnection.cpp b/engine/server/application/LoginServer/src/shared/ClientConnection.cpp index ff77bed8..1aaa69ad 100755 --- a/engine/server/application/LoginServer/src/shared/ClientConnection.cpp +++ b/engine/server/application/LoginServer/src/shared/ClientConnection.cpp @@ -206,7 +206,7 @@ void ClientConnection::validateClient(const std::string & id, const std::string if (curl) { - std::string postData = "user_name=" + id + "&user_password=" + key; + std::string postData = "user_name=" + id + "&user_password=" + key + "&stationID=" + std::to_string(atoi(id.c_str())) + "&ip=" + getRemoteAddress(); curl_easy_setopt(curl, CURLOPT_URL, authURL); curl_easy_setopt(curl, CURLOPT_POSTFIELDS, postData.c_str());