mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-14 02:27:09 -07:00
Reset WebUI ban counter on login success
This commit is contained in:
parent
576004c840
commit
faf84e483a
1 changed files with 2 additions and 0 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue