public function loadUser($authUser) { if (AuthUserData::userExistConfirmed($authUser)) { $this->userID = AuthUserData::getUserIDByUserName($authUser); return true; } return false; }
public function createSubUser($userName, $email, $newPassword, $twoFactorType, $roles) { if (!$this->validated) { $this->userID = AuthUserData::addSubNewUser($userName, $email, $this->parentUserID); AuthUserData::confirmEmail(AuthUserData::getUserIDByUserName($userName)); $this->validated = true; $this->updateSubUserPassword($newPassword); $this->updateSubUser($twoFactorType, $roles); return $this->userID; } return false; }