Browse Source

Reset WebUI ban counter on login success

adaptive-webui-19844
Chocobo1 7 years ago
parent
commit
5c72a52ea2
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 2
      src/webui/api/authcontroller.cpp

2
src/webui/api/authcontroller.cpp

@ -69,6 +69,8 @@ void AuthController::loginAction() @@ -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…
Cancel
Save