From 3a434fe770b3eabba1ca0f0affdc1371c3f92c0b Mon Sep 17 00:00:00 2001 From: liverbool Date: Mon, 5 Feb 2018 17:26:27 +0700 Subject: [PATCH] bugfix accept only check-login action --- Firewall/LoginFormAuthenicationListener.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Firewall/LoginFormAuthenicationListener.php b/Firewall/LoginFormAuthenicationListener.php index cae56a5..e3a438e 100644 --- a/Firewall/LoginFormAuthenicationListener.php +++ b/Firewall/LoginFormAuthenicationListener.php @@ -69,6 +69,10 @@ private function checkReCaptcha(Request $request) return false; } + if (!$request->request->has($this->options['username_parameter']) || !$request->request->has($this->options['password_parameter'])) { + return false; + } + if (!$this->checker->isValid()) { $exception = new InvalidReCaptchaAuthenticationException('Invalid ReCaptch.'); $exception->setErrors($this->checker->getErrors());