From d2d1657cb2f49c8097cfbebf94af74f393df3176 Mon Sep 17 00:00:00 2001 From: Amine Ben hammou Date: Mon, 18 Dec 2017 14:17:17 +0000 Subject: [PATCH] added re-captcha settings to database --- lib/Config/Populator.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/Config/Populator.php b/lib/Config/Populator.php index 5c252f8adf..3a3ed47aff 100644 --- a/lib/Config/Populator.php +++ b/lib/Config/Populator.php @@ -140,6 +140,16 @@ class Populator { Setting::setValue('installed_at', date("Y-m-d H:i:s")); } + // set reCaptcha settings + $re_captcha = Setting::getValue('re_captcha', array()); + if(empty($re_captcha)) { + Setting::setValue('re_captcha', array( + 'enabled' => false, + 'site_token' => '', + 'secret_token' => '' + )); + } + // reset mailer log MailerLog::resetMailerLog(); }