mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-03 14:10:57 +08:00
- add Filament toggle to control whether attendance check-in requires captcha - persist the toggle under captcha.attendance.enabled with sensible defaults Signed-off-by: Qi HU <github@spcsky.com>
32 lines
1.0 KiB
PHP
32 lines
1.0 KiB
PHP
<?php
|
|
|
|
return [
|
|
'default' => nexus_env('CAPTCHA_DRIVER', 'image'),
|
|
|
|
'drivers' => [
|
|
'image' => [
|
|
'class' => \App\Services\Captcha\Drivers\ImageCaptchaDriver::class,
|
|
],
|
|
|
|
'cloudflare_turnstile' => [
|
|
'class' => \App\Services\Captcha\Drivers\TurnstileCaptchaDriver::class,
|
|
'site_key' => nexus_env('TURNSTILE_SITE_KEY'),
|
|
'secret_key' => nexus_env('TURNSTILE_SECRET_KEY'),
|
|
'theme' => nexus_env('TURNSTILE_THEME', 'auto'),
|
|
'size' => nexus_env('TURNSTILE_SIZE', 'auto'),
|
|
],
|
|
|
|
'google_recaptcha_v2' => [
|
|
'class' => \App\Services\Captcha\Drivers\RecaptchaV2CaptchaDriver::class,
|
|
'site_key' => nexus_env('RECAPTCHA_SITE_KEY'),
|
|
'secret_key' => nexus_env('RECAPTCHA_SECRET_KEY'),
|
|
'theme' => nexus_env('RECAPTCHA_THEME', 'light'),
|
|
'size' => nexus_env('RECAPTCHA_SIZE', 'normal'),
|
|
],
|
|
],
|
|
|
|
'attendance' => [
|
|
'enabled' => nexus_env('CAPTCHA_ATTENDANCE_ENABLED', true),
|
|
],
|
|
];
|