getgrav / grav-theme-agency

Agency Theme for Grav
https://getgrav.org
MIT License
27 stars 36 forks source link

Add captcha even when no 'position' is defined for the field #31

Open pamtbaau opened 3 years ago

pamtbaau commented 3 years ago

When adding a captcha field, users might not add a value for 'position' since the captcha is not being displayed at all as field.

When no position is given the captcha field is being ignored by the form.html.twig template.

Suggestion: Add captcha when defined with or without position.

Btw. same also applies to other fields which are not supposed to be displayed like the honeypot field