Refactor captcha (#1068)

* refactor captcha

* add default error message

* prevent rule from being called multiple times

* fixes

* use config

* Update this to latest

* Remove this

---------

Co-authored-by: Lance Pioch <git@lance.sh>
This commit is contained in:
Boy132
2025-03-15 20:52:38 +01:00
committed by GitHub
parent 3e26a1cf09
commit 45db06a1bd
16 changed files with 395 additions and 301 deletions

View File

@@ -1,15 +0,0 @@
<?php
return [
'turnstile_enabled' => env('TURNSTILE_ENABLED', false),
'turnstile_site_key' => env('TURNSTILE_SITE_KEY', null),
'turnstile_secret_key' => env('TURNSTILE_SECRET_KEY', null),
'turnstile_verify_domain' => env('TURNSTILE_VERIFY_DOMAIN', true),
'error_messages' => [
'turnstile_check_message' => 'Captcha failed! Please refresh and try again.',
],
];