diff --git a/src/Validator/Constraints/IsTrueValidator.php b/src/Validator/Constraints/IsTrueValidator.php index 963329a..318e82a 100755 --- a/src/Validator/Constraints/IsTrueValidator.php +++ b/src/Validator/Constraints/IsTrueValidator.php @@ -102,7 +102,7 @@ public function validate($value, Constraint $constraint): void $remoteip = $request->getClientIp(); // define variable for recaptcha check answer - $answer = $request->get('g-recaptcha-response'); + $answer = $request->get('g-recaptcha-response', $value); // Verify user response with Google $response = $this->recaptcha->verify($answer, $remoteip);