Auth/Login: fixes the "cant relog after login failed" bug and fixes a potential security risk

--HG--
branch : trunk
This commit is contained in:
Rat
2010-09-16 21:00:36 +02:00
parent 05ccd476be
commit 7bac6c16be

View File

@@ -656,7 +656,7 @@ bool AuthSocket::_HandleLogonProof()
}
else
{
char data[4]= { AUTH_LOGON_PROOF, WOW_FAIL_INCORRECT_PASSWORD, 3, 0};
char data[4]= { AUTH_LOGON_PROOF, WOW_FAIL_UNKNOWN_ACCOUNT, 3, 0};
socket().send(data, sizeof(data));
sLog.outBasic("[AuthChallenge] account %s tried to login with wrong password!",_login.c_str ());