From 17b7a4805a73ef85c3a936f782a1ad3af26937da Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Fri, 4 Jan 2019 21:45:44 +0100 Subject: [PATCH] Throttle with correct metadata Fixes #13202 Signed-off-by: Roeland Jago Douma --- lib/private/User/Session.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/User/Session.php b/lib/private/User/Session.php index 54003dee00..e563d440a1 100644 --- a/lib/private/User/Session.php +++ b/lib/private/User/Session.php @@ -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'); }