From 5c72a52ea2ef9448b694922086a18809b23f1b56 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Tue, 29 May 2018 16:52:22 +0800 Subject: [PATCH] Reset WebUI ban counter on login success --- src/webui/api/authcontroller.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/webui/api/authcontroller.cpp b/src/webui/api/authcontroller.cpp index ff80c25e3..1291f98a5 100644 --- a/src/webui/api/authcontroller.cpp +++ b/src/webui/api/authcontroller.cpp @@ -69,6 +69,8 @@ void AuthController::loginAction() const bool equalPass = Utils::String::slowEquals(passwordFromWebHashed.toUtf8(), password.toUtf8()); if (equalUser && equalPass) { + m_clientFailedLogins.remove(clientAddr); + sessionManager()->sessionStart(); setResult(QLatin1String("Ok.")); LogMsg(tr("WebAPI login success. IP: %1").arg(clientAddr));