Skip to content

Commit

Permalink
Modify HandleAuthSession to store realmID instead of LOGIN_TYPE_MANGO…
Browse files Browse the repository at this point in the history
…SD constant in loginSource column of account_logons table.
  • Loading branch information
Victor Corbuleanu authored and killerwife committed Jul 24, 2024
1 parent 71e561f commit 7b6f9a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/Server/WorldSocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ bool WorldSocket::HandleAuthSession(WorldPacket& recvPacket)
static SqlStatementID updAccount;

SqlStatement stmt = LoginDatabase.CreateStatement(updAccount, "INSERT INTO account_logons(accountId,ip,loginTime,loginSource) VALUES(?,?," _NOW_ ",?)");
stmt.PExecute(id, address.c_str(), std::to_string(LOGIN_TYPE_MANGOSD).c_str());
stmt.PExecute(id, address.c_str(), std::to_string(realmID).c_str());

m_crypt.Init(&K);

Expand Down

0 comments on commit 7b6f9a4

Please sign in to comment.