mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-22 05:15:29 +09:00
Disable reCAPTCHA if keys are not set
This commit is contained in:
parent
7c652d06f3
commit
d94226ffb1
1 changed files with 1 additions and 1 deletions
|
|
@ -218,7 +218,7 @@ class spamfilterController extends spamfilter
|
||||||
function triggerCheckCaptcha(&$obj)
|
function triggerCheckCaptcha(&$obj)
|
||||||
{
|
{
|
||||||
$config = ModuleModel::getModuleConfig('spamfilter');
|
$config = ModuleModel::getModuleConfig('spamfilter');
|
||||||
if (!isset($config) || !isset($config->captcha) || $config->captcha->type !== 'recaptcha')
|
if (!isset($config) || !isset($config->captcha) || $config->captcha->type !== 'recaptcha' || !$config->captcha->site_key || !$config->captcha->secret_key)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue