mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 14:50:17 -04:00
Throttle with correct metadata
Fixes #13202 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
5ef74e2952
commit
6980ecf7ab
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue