You've already forked Epicnabbo-Catalogus-Updated-Daily
🆙 More fixes 🆙
This commit is contained in:
@@ -10,10 +10,11 @@ class TurnstileCheck implements ValidationRule
|
||||
{
|
||||
public function validate(string $attribute, mixed $value, Closure $fail): void
|
||||
{
|
||||
$response = LaravelTurnstile::validate($value);
|
||||
$response = LaravelTurnstile::validate(is_string($value) ? $value : '');
|
||||
|
||||
if (! $response['success'] && setting('cloudflare_turnstile_enabled')) {
|
||||
$fail(__(config('turnstile.error_messages.turnstile_check_message')));
|
||||
$message = config('turnstile.error_messages.turnstile_check_message');
|
||||
$fail(__(is_string($message) ? $message : 'Turnstile check failed.'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user