diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2019-01-04 22:21:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-04 22:21:01 +0100 |
commit | 40e3a7bbcfd05f7d2777392d6b28a5ba09b6d072 (patch) | |
tree | 227e2d519d4df417963f91d0ad26fba63b51f3a0 /lib | |
parent | 846d21e7f5477ca23b2385353016faade51b6496 (diff) | |
parent | 6980ecf7ab4743b97263b676fa83fe92996165da (diff) | |
download | nextcloud-server-40e3a7bbcfd05f7d2777392d6b28a5ba09b6d072.tar.gz nextcloud-server-40e3a7bbcfd05f7d2777392d6b28a5ba09b6d072.zip |
Merge pull request #13367 from nextcloud/fix/13202/throttle_with_correct_metadata
Throttle with correct metadata
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'); } |