Read Captcha Settings From ENV (#1130)

* Read Captcha Settings From ENV

* Update captcha.php
This commit is contained in:
B.Fatih KOZ
2021-04-11 18:35:14 +03:00
committed by GitHub
parent 498d5bfaf0
commit 2c8372d484

View File

@@ -7,17 +7,17 @@
* Don't edit this file directly, add the section to your config.php * Don't edit this file directly, add the section to your config.php
*/ */
return [ return [
'enabled' => false, 'enabled' => env('CAPTCHA_ENABLED', 'false'),
'sitekey' => '', 'sitekey' => env('CAPTCHA_SITEKEY', ''),
'secret' => '', 'secret' => env('CAPTCHA_SECRET', ''),
// Attributes can be found here: // Attributes can be found here:
// https://developers.google.com/recaptcha/docs/display#render_param // https://developers.google.com/recaptcha/docs/display#render_param
'attributes' => [ 'attributes' => [
'data-theme' => 'light', 'data-theme' => env('CAPTCHA_DATATHEME', 'light'),
], ],
'options' => [ 'options' => [
'timeout' => 2.0, 'timeout' => env('CAPTCHA_TIMEOUT', '2.0'),
], ],
]; ];