lukeraymonddowning / honey

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

Error When Disabling on Local Environment #22

Open JamesCobbledick opened 3 years ago

JamesCobbledick commented 3 years ago

Expected

Disable the use of honey on the local environment by commenting out config.honey.environments.local Successfully submit a form, even though it has 'honey' & 'honey-recaptcha' middleware on the server side and <x-honey recaptcha="message"/> on the front end.

Actual Result

Error is thrown with the following: Typed property Lukeraymonddowning\Honey\Recaptcha::$response must not be accessed before initialization.

It then points to here: \vendor\lukeraymonddowning\honey\src\Recaptcha.php:60

lukeraymonddowning commented 3 years ago

Couple of checks if you don't mind:

JamesCobbledick commented 3 years ago

APP_ENV=local

I have honey in composer.json as 0.3.1

JamesCobbledick commented 3 years ago

I've just found that this error is in the console if used on a page that's making use of Vue?

`app.js:331324 [Vue warn]: Error compiling template:

Templates should only be responsible for mapping the state to the UI. Avoid placing tags with side-effects in your templates, such as Githubissues.

  • Githubissues is a development platform for aggregating issues.