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 18, 2024
1 parent 93d1856 commit efe6f53
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 efe6f53

Please sign in to comment.