diff --git a/src/Service/UserService.php b/src/Service/UserService.php index 364ff43..a40dc47 100644 --- a/src/Service/UserService.php +++ b/src/Service/UserService.php @@ -722,11 +722,10 @@ class UserService } } + //TODO : facto cause it's just a single line now private function sendNewUserNotifications(User $user, Organizations $org, User $actingUser): void { try { - $token = $this->generatePasswordToken($user, $org->getId()); - $this->emailService->sendPasswordSetupEmail($user, $token); $this->organizationsService->notifyOrganizationAdmins(['user' => $user, 'acting_user_id' => $actingUser->getId(), 'organization' => $org], 'USER_INVITED'); } catch (\Exception $e) {