mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-14 10:37:06 -07:00
Reset WebUI ban counter on login success
This commit is contained in:
parent
d782d62b34
commit
5c72a52ea2
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