Fix 2 mail sending
This commit is contained in:
parent
91f3e06dd5
commit
813c891477
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue