ianlandsman / Honeypot

Spam catcher bundle for the Laravel framework
38 stars 2 forks source link

Invalid field name in your documentation #6

Open rhollins opened 11 years ago

rhollins commented 11 years ago

You write time_field_name and than field_name_time

Think rules should look like this

    'honey_field_name'  => 'honeypot',
    'time_field_name'   => 'required|honeytime:5'

and than form like this:

{{ Form::honeypot('honey_field_name', 'time_field_name') }}

sschimmel commented 11 years ago

You are supposed to change the field names to something that suits your site. When you do, you have to change the Form::honeypot tag and the validation. The documentation doesn't mention this. Not changing the field names make it easy for the bots to detect the honeypot input field as it's mentioned in the name.