Skip to content

Commit

Permalink
Merge pull request #3 from coderflexx/rule-refactoring
Browse files Browse the repository at this point in the history
Refactoring
  • Loading branch information
ousid authored May 30, 2023
2 parents 1373244 + 6f9438b commit 0c0af95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/views/components/turnstile-widget.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
'data-size' => $size,
]) }}></div>

<script src="https://challenges.cloudflare.com/turnstile/v0/api.js?onload=onloadTurnstileCallback" defer></script>
<script src="https://challenges.cloudflare.com/turnstile/v0/api.js" defer></script>
2 changes: 1 addition & 1 deletion src/Rules/TurnstileCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class TurnstileCheck implements ValidationRule
*/
public function validate(string $attribute, mixed $value, Closure $fail): void
{
$response = LaravelTurnstile::validate();
$response = LaravelTurnstile::validate($value);

if (! $response['success']) {
$fail(__(config('turnstile.error_messages.turnstile_check_message')));
Expand Down

0 comments on commit 0c0af95

Please sign in to comment.