From 813c891477a4b517c11c5945ad27cac0a00ef90a Mon Sep 17 00:00:00 2001 From: Charles Date: Tue, 3 Mar 2026 15:15:45 +0100 Subject: [PATCH] Fix 2 mail sending --- src/Service/UserService.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) {