Skip to content

Commit

Permalink
Let the user enter any email in forgot password page
Browse files Browse the repository at this point in the history
  • Loading branch information
crisnicandrei committed Oct 21, 2024
1 parent dbec266 commit c37a8b1
Showing 1 changed file with 4 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
}
}

0 comments on commit c37a8b1

Please sign in to comment.