diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2019-01-04 21:45:44 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-01-04 21:45:44 +0100 |
commit | 6980ecf7ab4743b97263b676fa83fe92996165da (patch) | |
tree | 9b4963dbd853e974d4d97ccd467cbe94d97e5d18 /lib | |
parent | 5ef74e29525c13e041ef1f50994b404664b77ece (diff) | |
download | nextcloud-server-6980ecf7ab4743b97263b676fa83fe92996165da.tar.gz nextcloud-server-6980ecf7ab4743b97263b676fa83fe92996165da.zip |
Throttle with correct metadata
Fixes #13202
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/User/Session.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/User/Session.php b/lib/private/User/Session.php index 8d1cfd13a50..a69aed3910b 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'); } |