cloudflare-turnstile-bundle icon indicating copy to clipboard operation
cloudflare-turnstile-bundle copied to clipboard

Add support for plain Symfony forms and validation

Open ggioffreda opened this issue 2 years ago • 3 comments

By defaulting to the submitted form value this validator can be used with custom Symfony form types.

This is useful for example:

  • when it's not possible to post to the hardcoded "cf-turnstile-response" form field
  • when using a third party widget (like vue-turnstile), while still performing server side validation with Symfony validators
  • when the data is not submitted through a standard web request

ggioffreda avatar Nov 21 '23 22:11 ggioffreda

Hi @ggioffreda,

Thank you for your contribution.

I will consider your contribution quickly ;)

matthieu2607 avatar Dec 08 '23 15:12 matthieu2607

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

sonarqubecloud[bot] avatar Mar 23 '24 21:03 sonarqubecloud[bot]

I second this PR - currently it's hardcoded to field name: cf-turnstile-response, so example with "security" field name doesn't work.

fliespl avatar Dec 06 '24 11:12 fliespl