IsometriksSpamBundle
IsometriksSpamBundle copied to clipboard
Symfony Form Spam Protection
Fix issue with time protection that prevents form re-submitting after validation errors. As is written in the README: _A side affect of this spam prevention is that you won't be...
``` Fatal error: Class Isometriks\Bundle\SpamBundle\Form\Extension\Spam\Type\FormTypeTimedSpamExtension contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Symfony\Component\Form\FormTy peExtensionInterface::getExtendedType) in C:\laragon\www\DESiwid\vendor\isometriks\spam-bundle\Form\Extension\Spam\Type\FormTypeTimedSpamExtension.php on line 78 ``` Could you...
This merge provides to accessibility/UX improvements: - Add [attribute tabindex="-1"](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) to the honeypot field so that users navigating with the tab key won't stop on the field. > A negative...
Minor
I'm thinking about a way to prevent a session from being started for all users automatically (if `timed` is activated). Here's an idea: http://vvv.tobiassjosten.net/symfony/stopping-spam-with-symfony-forms/ In short: Store the current time...
If the session has expired, validation always fails, right? See https://github.com/isometriks/IsometriksSpamBundle/blob/master/Form/Extension/Spam/Provider/SessionTimedSpamProvider.php#L35 So I would set the default for `timed_spam_max` to `null`, so that the user's default session timeout setting (i.e....
Please double-check - I (more or less) guessed this :-)
Most examples of honeypots (including the default field name here) are for email address fields, so might be better to use an actual `email` type.
Actually this is a double of #10 but improved to work with Symfony 3.x.
Add a label to the field, helps people using a screen reader etc.