diff --git a/src/Constraints/CloudflareTurnstileValidator.php b/src/Constraints/CloudflareTurnstileValidator.php index 88a675d..f0747fd 100644 --- a/src/Constraints/CloudflareTurnstileValidator.php +++ b/src/Constraints/CloudflareTurnstileValidator.php @@ -49,7 +49,7 @@ public function validate($value, Constraint $constraint): void { if ($this->enable) { $request = $this->requestStack->getCurrentRequest(); - $turnstileResponse = $request->request->get('cf-turnstile-response'); + $turnstileResponse = $request->request->get('cf-turnstile-response', $value); if (empty($turnstileResponse)) { $this->context->buildViolation($constraint->message)->addviolation();