| 466 | bool engine_shutdown = false; |
| 467 | |
| 468 | void loginFail(const string& login, const string& remId) |
| 469 | { |
| 470 | // do not remove variables - both functions should be called |
| 471 | bool f1 = usernameFailedLogins->loginFail(login); |
| 472 | bool f2 = remoteFailedLogins->loginFail(remId); |
| 473 | if ((f1 || f2) && !engine_shutdown) |
| 474 | { |
| 475 | // Ahh, someone is too active today |
| 476 | Thread::sleep(FAILURE_DELAY * 1000); |
| 477 | } |
| 478 | } |
| 479 | |
| 480 | void loginSuccess(const string& login, const string& remId) |
| 481 | { |
no test coverage detected