Core/Auth: fixed logic in FailedLogins check
This commit is contained in:
1 parent
3b6b13071a
commit
dd399cc7d5
1 file changed
+1
-1
@@ -673,7 +673,7 @@ bool AuthSession::HandleLogonProof()
|
||||
stmt->setString(0, _accountInfo.Login);
|
||||
LoginDatabase.Execute(stmt);
|
||||
|
||||
if (_accountInfo.FailedLogins >= MaxWrongPassCount)
|
||||
if (++_accountInfo.FailedLogins >= MaxWrongPassCount)
|
||||
{
|
||||
uint32 WrongPassBanTime = sConfigMgr->GetIntDefault("WrongPass.BanTime", 600);
|
||||
bool WrongPassBanType = sConfigMgr->GetBoolDefault("WrongPass.BanType", false);
|
||||
|
||||
Reference in new issue
Block a user