mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-07-14 00:01:30 -04:00
autoformat
This commit is contained in:
@@ -301,9 +301,9 @@ void ClientConnection::handleClientIdMessage(const ClientIdMsg &msg) {
|
||||
bool cont = false;
|
||||
StationId apiSuid = 0;
|
||||
const std::string clientIP = getRemoteAddress();
|
||||
const std::string sess = sessionId;
|
||||
const std::string sess = sessionId;
|
||||
|
||||
webAPI api(sessURL);
|
||||
webAPI api(sessURL);
|
||||
|
||||
// add our data
|
||||
api.addJsonData<std::string>("session_key", sess);
|
||||
@@ -317,13 +317,13 @@ void ClientConnection::handleClientIdMessage(const ClientIdMsg &msg) {
|
||||
int expired = api.getNullableValue<int>("expired");
|
||||
std::string apiUser = api.getString("user_name");
|
||||
std::string apiIP = api.getString("ip");
|
||||
|
||||
if (apiIP == clientIP && expired == 0) {
|
||||
|
||||
if (apiIP == clientIP && expired == 0) {
|
||||
m_suid = apiSuid;
|
||||
cont = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!cont) {
|
||||
LOG("ClientDisconnect", ("SUID %d (%d) passed a bad token to the connections erver. Disconnecting.", m_suid, apiSuid));
|
||||
|
||||
Reference in New Issue
Block a user