Read Captcha Settings From ENV (#1130)
* Read Captcha Settings From ENV * Update captcha.php
This commit is contained in:
@@ -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'),
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user