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
*/
return [
'enabled' => false,
'sitekey' => '',
'secret' => '',
'enabled' => env('CAPTCHA_ENABLED', 'false'),
'sitekey' => env('CAPTCHA_SITEKEY', ''),
'secret' => env('CAPTCHA_SECRET', ''),
// Attributes can be found here:
// https://developers.google.com/recaptcha/docs/display#render_param
'attributes' => [
'data-theme' => 'light',
'data-theme' => env('CAPTCHA_DATATHEME', 'light'),
],
'options' => [
'timeout' => 2.0,
'timeout' => env('CAPTCHA_TIMEOUT', '2.0'),
],
];