MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / loginFail

Function loginFail

src/remote/server/server.cpp:468–478  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

466bool engine_shutdown = false;
467
468void 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
480void loginSuccess(const string& login, const string& remId)
481{

Callers 2

authenticateMethod · 0.85
accept_connectionFunction · 0.85

Calls 2

loginFailMethod · 0.80
sleepFunction · 0.50

Tested by

no test coverage detected