Also separate target actions when auto-inserting CAPTCHA into forms #1815

This commit is contained in:
Kijin Sung 2022-02-07 21:25:41 +09:00
parent 2dc3e5e19b
commit 0970a7d7ad
3 changed files with 24 additions and 7 deletions

View file

@ -264,6 +264,7 @@ class spamfilterController extends spamfilter
{
$captcha = new spamfilter_reCAPTCHA();
$captcha->setTargetActions($target_actions);
$captcha->addScripts();
Context::set('captcha', $captcha);
}
}