Merge branch 'dev/mailing-bugfix' into 'develop'
Fix 2 mail sending See merge request easy-solutions/apps/easyportal!45
This commit is contained in:
commit
ef7684f02b
|
|
@ -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
|
private function sendNewUserNotifications(User $user, Organizations $org, User $actingUser): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$token = $this->generatePasswordToken($user, $org->getId());
|
|
||||||
$this->emailService->sendPasswordSetupEmail($user, $token);
|
|
||||||
$this->organizationsService->notifyOrganizationAdmins(['user' => $user, 'acting_user_id' => $actingUser->getId(),
|
$this->organizationsService->notifyOrganizationAdmins(['user' => $user, 'acting_user_id' => $actingUser->getId(),
|
||||||
'organization' => $org], 'USER_INVITED');
|
'organization' => $org], 'USER_INVITED');
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue