aboutsummaryrefslogtreecommitdiff
path: root/src/server/authserver/Server/AuthSession.cpp
diff options
context:
space:
mode:
authorjoschiwald <joschiwald.trinity@gmail.com>2016-09-24 20:03:31 +0200
committerjoschiwald <joschiwald.trinity@gmail.com>2016-09-24 20:03:31 +0200
commit96316530d8eef7be278ca7baad952ebef0696a0a (patch)
treee52c674190320dc9012bc82f81285d7a7b15abd7 /src/server/authserver/Server/AuthSession.cpp
parentcd6fcce84b0aefb2f5d0494cbfdbb5bf25061f2f (diff)
Core/Auth: fixed logic in FailedLogins check
Diffstat (limited to 'src/server/authserver/Server/AuthSession.cpp')
-rw-r--r--src/server/authserver/Server/AuthSession.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/authserver/Server/AuthSession.cpp b/src/server/authserver/Server/AuthSession.cpp
index e5e9524896f..660e8a5a4df 100644
--- a/src/server/authserver/Server/AuthSession.cpp
+++ b/src/server/authserver/Server/AuthSession.cpp
@@ -671,7 +671,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);