Skip to content

Commit

Permalink
bugfix accept only check-login action
Browse files Browse the repository at this point in the history
  • Loading branch information
liverbool committed Feb 5, 2018
1 parent 9c31b55 commit 3a434fe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Firewall/LoginFormAuthenicationListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 3a434fe

Please sign in to comment.