This commit is contained in:
Akkadius
2019-07-09 02:10:10 -05:00
parent 8c75cf1ff5
commit 8eaeda5ec5
10 changed files with 217 additions and 108 deletions
+3 -3
View File
@@ -383,11 +383,10 @@ void Client::AttemptLoginAccountCreation(
const std::string &loginserver
)
{
LogInfo("Attempting login account creation via '{0}'", loginserver);
#ifdef LSPX
if (loginserver == "eqemu") {
LogInfo("Attempting login account creation via '{0}'", loginserver);
if (!server.options.CanAutoLinkAccounts()) {
LogInfo("CanAutoLinkAccounts disabled - sending failed login");
DoFailedLogin();
@@ -452,6 +451,7 @@ void Client::AttemptLoginAccountCreation(
#endif
if (server.options.CanAutoCreateAccounts() && loginserver == "local") {
LogInfo("CanAutoCreateAccounts enabled, attempting to creating account [{0}]", user);
CreateLocalAccount(user, pass);
return;
}