msurguy / Honeypot

Simple spam prevention package for Laravel applications
maxoffsky.com/code-blog/implementing-honeypot-spam-prevention-in-laravel-applications/
MIT License
429 stars 44 forks source link

Need to catch Illuminate\Encryption\DecryptException #8

Closed MCNMike closed 10 years ago

MCNMike commented 10 years ago

When a bot throws bad data at your form then the decrypt for the honeytime will throw a Illuminate\Encryption\DecryptException exception which does not get caught. I wrapped my validation in a try catch to handle it on my end for now, but it would be nice if this was handled internally.

champloo11 commented 10 years ago

Suggested a pull request from the main-developer of this repo. https://github.com/msurguy/Honeypot/pull/10 . Should fix your issue in a way that is standardized True/False.

msurguy commented 10 years ago

Thanks! Merged!