studiomitte / friendlycaptcha-typo3

Integration of friendly captcha
Other
4 stars 8 forks source link

Allow to skip validation in development context #4

Closed koehnlein closed 10 months ago

koehnlein commented 11 months ago

We have several acceptance tests in our projects which test the processing of form data after it was submitted.

For this reason we need to bypass the FriendlyCaptcha validation. To avoid missconfiguration on production systems, this feature is limited to Development contexts.

I would recommend to set the value via ENV variables, ...

friendlycaptcha_skip_dev_validation: '%env(FRIENDLYCAPTCHA_SKIP_DEV_VALIDATION)%'

... but even if someone sets it to 1 in the site config, it only can be used in Development context.

Maybe this is helpful for others, too.

skip-validation