IsometriksSpamBundle icon indicating copy to clipboard operation
IsometriksSpamBundle copied to clipboard

Use EmailType

Open thewilkybarkid opened this issue 6 years ago • 2 comments

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.

thewilkybarkid avatar Aug 29 '19 08:08 thewilkybarkid

Hmm. I'm torn between the fact that if anything is put into the field that it should fail, and that if it's an email field maybe a bot would be more inclined to fill it in knowing it's an email field.

isometriks avatar Aug 30 '19 03:08 isometriks

@isometriks Don't understand what you mean :-(

If the form already has an email address which is rendered as EmailType, it's odd (i..e obvious for the bot) if the "second" email field is a TextType. On the other hand, if you call the honeypot field last_name, it shouldn't be rendered as EmailType...

So to me there's only one solution to this: Another option! I would call it type - same as Symfony https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Form/FormBuilderInterface.php#L30

ThomasLandauer avatar Apr 22 '20 14:04 ThomasLandauer