mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +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
|
|
@ -62,6 +62,7 @@ enum AuthResult
|
|||
WOW_FAIL_BANNED = 0x03, ///< This <game> account has been closed and is no longer available for use. Please go to <site>/banned.html for further information.
|
||||
WOW_FAIL_UNKNOWN_ACCOUNT = 0x04, ///< The information you have entered is not valid. Please check the spelling of the account name and password. If you need help in retrieving a lost or stolen password, see <site> for more information
|
||||
WOW_FAIL_INCORRECT_PASSWORD = 0x05, ///< The information you have entered is not valid. Please check the spelling of the account name and password. If you need help in retrieving a lost or stolen password, see <site> for more information
|
||||
// client reject next login attempts after this error, so in code used WOW_FAIL_UNKNOWN_ACCOUNT for both cases
|
||||
WOW_FAIL_ALREADY_ONLINE = 0x06, ///< This account is already logged into <game>. Please check the spelling and try again.
|
||||
WOW_FAIL_NO_TIME = 0x07, ///< You have used up your prepaid time for this account. Please purchase more to continue playing
|
||||
WOW_FAIL_DB_BUSY = 0x08, ///< Could not log in to <game> at this time. Please try again later.
|
||||
|
|
|
|||
|
|
@ -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 ());
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "10529"
|
||||
#define REVISION_NR "10530"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue