honey
honey copied to clipboard
Stopped working after updating both livewire 3 and honey
Hi there!
I've been using the captcha for some time along with the honeypot and it worked with some adjustments (#71 ) but now, after updating Livewire and Honey to the latest version, it stopped working
Component:
if(!$this->honeyPasses()){ $this->storeToastData('error', "Wrong Captcha, try refreshing the page."); return $this->redirect($this->previous, true); }
Blade (inside the form):
<x-honey recaptcha="login"/>
Using honeyPasses() consistently returns false, so I tried recaptchaPasses(). I noticed it works the first time, as the recaptcha token loads correctly. However, after navigating with wire:navigate, the token is deleted, and only this remains:
<input wire:model="honeyInputs.honey_recaptcha_token" action="login" type="hidden" data-purpose="honey-rc" data-action="login" name="honey_recaptcha_token" value="">
Also after 2 minutes the recaptcha is refreshed properly (I think automatically because I modified token_refresh_interval to 30 seconds and it didn't refresh it)
Does anyone have a clue what could be causing my problem?
Thank you!