lukeraymonddowning / honey

A spam prevention package for Laravel, providing honeypot techniques, ip blocking and beautifully simple Recaptcha integration. Stop spam. Use Honey.
MIT License
409 stars 23 forks source link

fix: :bug: fixed undefined array key "honey_time" error #60

Closed AntonioJABV closed 1 year ago

AntonioJABV commented 2 years ago

After starting to use this library, spammers are trying to spoof forms, and if they do not include the honey_time parameter, the server will give a 500 error even in production.

To solve it, I just copied from the file src/Checks/JavascriptInputFilledCheck.php the logic corresponding to the validation of the submitted fields, and I adapted it for the validation of the minimum time passed that gave problems.

This fixes the issues #59 and #33.