Open EGYWEB-Mohamed opened 3 years ago
Sometimes it happens the same to me. I think it happens when a user left the browser opened for a long time in the login page (not logged in), and tries to login.
Tenho este problema ocorrendo aqui também
Same issue with a basic contact form (no auth required). I think it happens when a spammer tries to send some kind of hacked token.
For now I am encapsulating the decrypt attempt with a try/catch to prevent the DecryptException being logged over and over:
# vendor/lukeraymonddowning/honey/src/InputValues/JavascriptInputValue.php
public function checkValue($value): bool
{
try {
return Crypt::decrypt($value) == "Honey";
} catch (\Throwable $exception) {
return false;
}
}
The payload is invalid. {"exception":"[object] (Illuminate\Contracts\Encryption\DecryptException(code: 0): The payload is invalid. at vendor/laravel/framework/src/Illuminate/Encryption/Encrypter.php:195)