1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 19:42:38 +02:00

API signup now support to send emailVerified

This commit is contained in:
Daniel 2022-03-10 11:34:31 -03:00
parent cc367fcff9
commit f9c4226764
2 changed files with 8 additions and 1 deletions

View file

@ -915,6 +915,7 @@ class API extends PluginAbstract {
* 'pass' password of the user
* 'email' email of the user
* 'name' real name of the user
* ['emailVerified' 1 = email verified]
* 'APISecret' mandatory for security reasons
* @example {webSiteRootURL}plugin/API/{getOrSet}.json.php?APIName={APIName}&APISecret={APISecret}&user=admin&pass=123&email=me@mysite.com&name=Yeshua
* @return type
@ -927,6 +928,9 @@ class API extends PluginAbstract {
return new ApiObject("APISecret Not valid");
}
$ignoreCaptcha = 1;
if(isset($_REQUEST['emailVerified'])){
$global['emailVerified'] = intval($_REQUEST['emailVerified']);
}
require_once $global['systemRootPath'] . 'objects/userCreate.json.php';
exit;
}