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

@@ -44,7 +44,7 @@ return Application::configure(basePath: dirname(__DIR__))
'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class,
'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
'node.maintenance' => \App\Http\Middleware\MaintenanceMiddleware::class,
'recaptcha' => \App\Http\Middleware\VerifyReCaptcha::class,
'captcha' => \App\Http\Middleware\VerifyCaptcha::class,
]);
})
->withSingletons([