Skip to content

Commit

Permalink
Merge pull request #87 from shubhagarwal1/navigate
Browse files Browse the repository at this point in the history
add navigation to login page on succcessful sign up
  • Loading branch information
sakeel-103 authored Oct 9, 2024
2 parents f8c02b8 + bbb4793 commit 3c44952
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/signup-page/signup-page.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class SignupComponent {
localStorage.setItem('users', JSON.stringify(users));

this.toastr.success("Sign-up successful! You can now log in.",'Success')

this.router.navigate(['/login']);
this.authService.signUp(signupData).subscribe(
(response: any) => {
this.router.navigate(['/main-index']);
Expand Down

0 comments on commit 3c44952

Please sign in to comment.