mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-21 08:09:35 +08:00
Reset WebUI ban counter on login success
This commit is contained in:
parent
d782d62b34
commit
5c72a52ea2
@ -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…
Reference in New Issue
Block a user