1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00

Improve captcha validation error messages for user creation and API handling

This commit is contained in:
Daniel Neto 2025-07-03 10:53:29 -03:00
parent 7e35cd4d7b
commit baf9025b00
2 changed files with 1 additions and 2 deletions

View file

@ -4004,7 +4004,7 @@ class API extends PluginAbstract
require_once $global['systemRootPath'] . 'objects/captcha.php';
$valid = Captcha::validation($_REQUEST['captcha']);
if(!$valid){
return new ApiObject("Captcha is wrong");
return new ApiObject("Captcha is wrong, reload it and try again");
}
}
$ignoreCaptcha = 1;