diff --git a/src/app/auth/components/forgot-password/forgot-password.component.ts b/src/app/auth/components/forgot-password/forgot-password.component.ts index eb629a953..4efcf8892 100644 --- a/src/app/auth/components/forgot-password/forgot-password.component.ts +++ b/src/app/auth/components/forgot-password/forgot-password.component.ts @@ -35,18 +35,9 @@ export class ForgotPasswordComponent { onSubmit(formValue: any) { this.waiting = true; - this.api.auth - .forgotPassword(formValue.email) - .subscribe((response: AuthResponse) => { - this.waiting = false; - if (response.isSuccessful) { - this.success = true; - } else { - this.message.showError({ - message: response.getMessage(), - translate: true, - }); - } - }); + this.api.auth.forgotPassword(formValue.email).subscribe(() => { + this.waiting = false; + this.success = true; + }); } }