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:
parent
cc367fcff9
commit
f9c4226764
2 changed files with 8 additions and 1 deletions
|
@ -642,7 +642,10 @@ if (typeof gtag !== \"function\") {
|
|||
$this->status = 'a';
|
||||
}
|
||||
if (empty($this->emailVerified)) {
|
||||
$this->emailVerified = "false";
|
||||
$this->emailVerified = 0;
|
||||
}
|
||||
if(isset($global['emailVerified'])){
|
||||
$this->emailVerified = $global['emailVerified'];
|
||||
}
|
||||
|
||||
$this->is_company = $this->getIs_company();
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue