mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 17:59:55 +02:00
This commit is contained in:
parent
71b16b2e2f
commit
79662c59ee
1 changed files with 5 additions and 5 deletions
|
@ -2145,9 +2145,9 @@ if (typeof gtag !== \"function\") {
|
||||||
$pass = encryptPassword($pass);
|
$pass = encryptPassword($pass);
|
||||||
$userObject = new User(0, $user, $pass);
|
$userObject = new User(0, $user, $pass);
|
||||||
$userObject->setEmail($email);
|
$userObject->setEmail($email);
|
||||||
//$userObject->setName($name);
|
$userObject->setName($name);
|
||||||
$userObject->setIsAdmin($isAdmin);
|
$userObject->setIsAdmin($isAdmin);
|
||||||
//$userObject->setPhotoURL($photoURL);
|
$userObject->setPhotoURL($photoURL);
|
||||||
$userObject->setEmailVerified($emailVerified);
|
$userObject->setEmailVerified($emailVerified);
|
||||||
$userId = $userObject->save();
|
$userId = $userObject->save();
|
||||||
if (!empty($userId)) {
|
if (!empty($userId)) {
|
||||||
|
@ -2158,9 +2158,9 @@ if (typeof gtag !== \"function\") {
|
||||||
return $userId;
|
return $userId;
|
||||||
} else {
|
} else {
|
||||||
$userObj = new User($userId);
|
$userObj = new User($userId);
|
||||||
$userObj->setEmail($email);
|
//$userObj->setEmail($email);
|
||||||
$userObj->setName($name);
|
//$userObj->setName($name);
|
||||||
$userObj->setPhotoURL($photoURL);
|
//$userObj->setPhotoURL($photoURL);
|
||||||
if ($emailVerified) {
|
if ($emailVerified) {
|
||||||
$userObj->setEmailVerified(1);
|
$userObj->setEmailVerified(1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue