Support methods to load and check CAPTCHA wherever a developer wants

This commit is contained in:
Kijin Sung 2025-12-17 17:37:03 +09:00
parent 01984210b6
commit 307661b57b
10 changed files with 127 additions and 11 deletions

View file

@ -86,6 +86,20 @@ class SpamfilterAdminView extends Spamfilter
$this->setTemplateFile('config_captcha');
}
/**
* @brief CAPTCHA Test
*/
public function dispSpamfilterAdminConfigCaptchaTest()
{
$config = ModuleModel::getModuleConfig('spamfilter');
Context::set('config', $config);
$captcha = SpamfilterModel::getCaptcha();
Context::set('captcha', $captcha);
$this->setTemplateFile('captcha_test');
}
}
/* End of file spamfilter.admin.view.php */
/* Location: ./modules/spamfilter/spamfilter.admin.view.php */