mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-10-14 04:13:15 -04:00
first try at nesting code, minus the actual insert
This commit is contained in:
@@ -11,8 +11,8 @@
|
||||
#include "Archive/ByteStream.h"
|
||||
#include "ConfigLoginServer.h"
|
||||
#include "DatabaseConnection.h"
|
||||
#include "LoginServer.h"
|
||||
#include "SessionApiClient.h"
|
||||
#include "TaskMapAccount.h"
|
||||
#include "serverKeyShare/KeyShare.h"
|
||||
#include "sharedFoundation/ApplicationVersion.h"
|
||||
#include "sharedLog/Log.h"
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
#include "sharedFoundation/CrcConstexpr.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
//#include <algorithm>
|
||||
|
||||
#include "webAPI.h"
|
||||
|
||||
@@ -244,10 +244,12 @@ void ClientConnection::validateClient(const std::string & id, const std::string
|
||||
uname.resize(MAX_ACCOUNT_NAME_LENGTH);
|
||||
}
|
||||
|
||||
std::hash<std::string> h;
|
||||
suid = h(uname.c_str());
|
||||
suid = std::hash<std::string>(uname.c_str());
|
||||
}
|
||||
|
||||
// insert all related accounts, if not already there, into the db
|
||||
//taskmapaccount
|
||||
|
||||
LOG("LoginClientConnection", ("validateClient() for stationId (%lu) at IP (%s), id (%s)", m_stationId, getRemoteAddress().c_str(), uname.c_str()));
|
||||
|
||||
LoginServer::getInstance().onValidateClient(suid, uname, this, true, NULL, 0xFFFFFFFF, 0xFFFFFFFF);
|
||||
|
||||
Reference in New Issue
Block a user