diff --git a/plugin/API/API.php b/plugin/API/API.php index fd6eb57154..7159e5856e 100644 --- a/plugin/API/API.php +++ b/plugin/API/API.php @@ -4000,6 +4000,8 @@ class API extends PluginAbstract if(empty($_REQUEST['captcha'])){ return new ApiObject("Captcha is required"); } + + require_once $global['systemRootPath'] . 'objects/captcha.php'; $valid = Captcha::validation($_REQUEST['captcha']); if(!$valid){ return new ApiObject("Captcha is wrong");