diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2017-07-27 14:14:20 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2017-07-27 14:17:45 +0200 |
commit | f22ab3e665124e79427f51049fea0f937b66cdbb (patch) | |
tree | a2f4b3260853d0252b76d3ce452512a3f6a47ee6 /lib/private | |
parent | 63aa12e38c2e819b54c4b9e9632264a0e59dc6f2 (diff) | |
download | nextcloud-server-f22ab3e665124e79427f51049fea0f937b66cdbb.tar.gz nextcloud-server-f22ab3e665124e79427f51049fea0f937b66cdbb.zip |
Add metadata to \OCP\AppFramework\Http\Response::throttle
Fixes https://github.com/nextcloud/server/issues/5891
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/AppFramework/Middleware/Security/BruteForceMiddleware.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/AppFramework/Middleware/Security/BruteForceMiddleware.php b/lib/private/AppFramework/Middleware/Security/BruteForceMiddleware.php index b361f453bdb..75cf40b0ace 100644 --- a/lib/private/AppFramework/Middleware/Security/BruteForceMiddleware.php +++ b/lib/private/AppFramework/Middleware/Security/BruteForceMiddleware.php @@ -75,7 +75,7 @@ class BruteForceMiddleware extends Middleware { $action = $this->reflector->getAnnotationParameter('BruteForceProtection', 'action'); $ip = $this->request->getRemoteAddress(); $this->throttler->sleepDelay($ip, $action); - $this->throttler->registerAttempt($action, $ip); + $this->throttler->registerAttempt($action, $ip, $response->getThrottleMetadata()); } return parent::afterController($controller, $methodName, $response); |