summaryrefslogtreecommitdiffstats
path: root/core/Controller
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2017-07-27 14:14:20 +0200
committerLukas Reschke <lukas@statuscode.ch>2017-07-27 14:17:45 +0200
commitf22ab3e665124e79427f51049fea0f937b66cdbb (patch)
treea2f4b3260853d0252b76d3ce452512a3f6a47ee6 /core/Controller
parent63aa12e38c2e819b54c4b9e9632264a0e59dc6f2 (diff)
downloadnextcloud-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 'core/Controller')
-rw-r--r--core/Controller/LoginController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Controller/LoginController.php b/core/Controller/LoginController.php
index 1c75b1f3c8b..12431571256 100644
--- a/core/Controller/LoginController.php
+++ b/core/Controller/LoginController.php
@@ -248,7 +248,7 @@ class LoginController extends Controller {
$args['redirect_url'] = $redirect_url;
}
$response = new RedirectResponse($this->urlGenerator->linkToRoute('core.login.showLoginForm', $args));
- $response->throttle();
+ $response->throttle(['user' => $user]);
$this->session->set('loginMessages', [
['invalidpassword'], []
]);