mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-22 16:28:28 +00:00
Take in API requests via json payload instead of params
This commit is contained in:
@@ -385,8 +385,9 @@ void Client::AttemptLoginAccountCreation(
|
||||
{
|
||||
LogInfo("Attempting login account creation via '{0}'", loginserver);
|
||||
|
||||
if (loginserver == "eqemu") {
|
||||
#ifdef LSPX
|
||||
|
||||
if (loginserver == "eqemu") {
|
||||
if (!server.options.CanAutoLinkAccounts()) {
|
||||
LogInfo("CanAutoLinkAccounts disabled - sending failed login");
|
||||
DoFailedLogin();
|
||||
@@ -445,16 +446,17 @@ void Client::AttemptLoginAccountCreation(
|
||||
login_connection_manager->Connect(addr, port);
|
||||
}
|
||||
);
|
||||
|
||||
return;
|
||||
}
|
||||
else {
|
||||
|
||||
if (!server.options.CanAutoCreateAccounts()) {
|
||||
DoFailedLogin();
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (server.options.CanAutoCreateAccounts() && loginserver == "local") {
|
||||
CreateLocalAccount(user, pass);
|
||||
return;
|
||||
}
|
||||
|
||||
DoFailedLogin();
|
||||
}
|
||||
|
||||
void Client::DoFailedLogin()
|
||||
|
||||
Reference in New Issue
Block a user