From 2c8372d484d5cfa0b52280dea4c7f0d2bce9affc Mon Sep 17 00:00:00 2001 From: "B.Fatih KOZ" <74361521+FatihKoz@users.noreply.github.com> Date: Sun, 11 Apr 2021 18:35:14 +0300 Subject: [PATCH] Read Captcha Settings From ENV (#1130) * Read Captcha Settings From ENV * Update captcha.php --- config/captcha.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/config/captcha.php b/config/captcha.php index 5d9f8736..7145b0dd 100644 --- a/config/captcha.php +++ b/config/captcha.php @@ -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'), ], ];