mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-15 09:42:56 -07:00
Fixed #2341
This commit is contained in:
parent
bf17bd4754
commit
93b8f14c4d
1 changed files with 6 additions and 0 deletions
|
@ -45,6 +45,12 @@ export class UserManagementComponent implements OnInit {
|
|||
this.notificationService.error("Email Notifications are not setup, cannot send welcome email");
|
||||
return;
|
||||
}
|
||||
if(!this.emailSettings.notificationTemplates.some(x => {
|
||||
return x.enabled && x.notificationType === 8;
|
||||
})) {
|
||||
this.notificationService.error("The Welcome Email template is not enabled in the Email Setings");
|
||||
return;
|
||||
}
|
||||
this.identityService.sendWelcomeEmail(user).subscribe();
|
||||
this.notificationService.success(`Sent a welcome email to ${user.emailAddress}`);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue