mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 05:13:18 -07:00
Added feedback when we send a welcome email #1578
This commit is contained in:
parent
989be6df6c
commit
3c1078a332
2 changed files with 7 additions and 2 deletions
|
@ -44,7 +44,7 @@ export class IdentityService extends ServiceAuthHelpers {
|
|||
}
|
||||
|
||||
public deleteUser(user: IUser): Observable<IIdentityResult> {
|
||||
return this.http.delete(`${this.url}/${user.id}`, { headers: this.headers }).map(this.extractData);
|
||||
return this.http.delete(`${this.url}${user.id}`, { headers: this.headers }).map(this.extractData);
|
||||
}
|
||||
|
||||
public submitResetPassword(email: string): Observable<IIdentityResult> {
|
||||
|
|
|
@ -28,11 +28,16 @@ export class UserManagementComponent implements OnInit {
|
|||
}
|
||||
|
||||
public welcomeEmail(user: IUser) {
|
||||
if(!user.emailAddress) {
|
||||
this.notificationService.error("Email", "The user needs an email address.");
|
||||
return;
|
||||
}
|
||||
if (!this.emailSettings.enabled) {
|
||||
this.notificationService.error("Email", "Email Notifications are not setup, cannot send welcome email");
|
||||
return;
|
||||
}
|
||||
this.identityService.sendWelcomeEmail(user).subscribe();
|
||||
this.identityService.sendWelcomeEmail(user).subscribe();
|
||||
this.notificationService.success("Email", `Sent a welcome email to ${user.emailAddress}`);
|
||||
}
|
||||
|
||||
public checkAllBoxes() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue