mirror of
https://github.com/mangosfour/server.git
synced 2025-12-20 16:37:04 +00:00
[10530] Fixed client reject any login attempt after WOW_FAIL_INCORRECT_PASSWORD receive.
Problem similar all all client versions. Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
2170c9c919
commit
5b0e73e36e
3 changed files with 4 additions and 3 deletions
|
|
@ -682,13 +682,13 @@ bool AuthSocket::_HandleLogonProof()
|
|||
{
|
||||
if (_build > 6005) // > 1.12.2
|
||||
{
|
||||
char data[4]= { CMD_AUTH_LOGON_PROOF, WOW_FAIL_INCORRECT_PASSWORD, 3, 0};
|
||||
char data[4] = { CMD_AUTH_LOGON_PROOF, WOW_FAIL_UNKNOWN_ACCOUNT, 3, 0};
|
||||
send(data, sizeof(data));
|
||||
}
|
||||
else
|
||||
{
|
||||
// 1.x not react incorrectly at 4-byte message use 3 as real error
|
||||
char data[2]= { CMD_AUTH_LOGON_PROOF, WOW_FAIL_INCORRECT_PASSWORD};
|
||||
char data[2] = { CMD_AUTH_LOGON_PROOF, WOW_FAIL_UNKNOWN_ACCOUNT};
|
||||
send(data, sizeof(data));
|
||||
}
|
||||
BASIC_LOG("[AuthChallenge] account %s tried to login with wrong password!",_login.c_str ());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue