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

Fixes an error where reCaptcha fails after being checked once #14

Closed lukeraymonddowning closed 3 years ago

lukeraymonddowning commented 3 years ago

I've updated this PR to include "hooks" into reCaptcha. Basically, your Livewire component will register a callback that will be fired every time a reCaptcha token is requested. This means that even if you check the token manually, it will still cause a token refresh after the next render.

I'm planning on expanding hook functionality to other parts of the system in versions to come, but this is a nice start.