From c98ce764a9fefbee08e5123f1fa7bd1a2dc466af Mon Sep 17 00:00:00 2001 From: Daniel Neto Date: Thu, 3 Jul 2025 10:11:23 -0300 Subject: [PATCH] Add captcha validation to API request handling --- plugin/API/API.php | 2 ++ 1 file changed, 2 insertions(+) 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");