Merge pull request #13369 from nextcloud/backport/13367/stable14
[stable14] Throttle with correct metadata
This commit is contained in:
commit
7a0772e602
|
@ -425,7 +425,7 @@ class Session implements IUserSession, Emitter {
|
|||
|
||||
$this->logger->warning('Login failed: \'' . $user . '\' (Remote IP: \'' . \OC::$server->getRequest()->getRemoteAddress() . '\')', ['app' => 'core']);
|
||||
|
||||
$throttler->registerAttempt('login', $request->getRemoteAddress(), ['uid' => $user]);
|
||||
$throttler->registerAttempt('login', $request->getRemoteAddress(), ['user' => $user]);
|
||||
if ($currentDelay === 0) {
|
||||
$throttler->sleepDelay($request->getRemoteAddress(), 'login');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue