1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00
Daniel Neto 2023-09-12 10:03:20 -03:00
parent 71b16b2e2f
commit 79662c59ee

View file

@ -2145,9 +2145,9 @@ if (typeof gtag !== \"function\") {
$pass = encryptPassword($pass);
$userObject = new User(0, $user, $pass);
$userObject->setEmail($email);
//$userObject->setName($name);
$userObject->setName($name);
$userObject->setIsAdmin($isAdmin);
//$userObject->setPhotoURL($photoURL);
$userObject->setPhotoURL($photoURL);
$userObject->setEmailVerified($emailVerified);
$userId = $userObject->save();
if (!empty($userId)) {
@ -2158,9 +2158,9 @@ if (typeof gtag !== \"function\") {
return $userId;
} else {
$userObj = new User($userId);
$userObj->setEmail($email);
$userObj->setName($name);
$userObj->setPhotoURL($photoURL);
//$userObj->setEmail($email);
//$userObj->setName($name);
//$userObj->setPhotoURL($photoURL);
if ($emailVerified) {
$userObj->setEmailVerified(1);
}