Skip to content

Commit

Permalink
fix: only redirect if email is verified
Browse files Browse the repository at this point in the history
  • Loading branch information
JanssenBrm committed Jan 26, 2024
1 parent 4553257 commit 6126e82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/login/login.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class LoginPage implements OnInit {

this.authService.getUser().subscribe({
next: (user) => {
if (user) {
if (user && user.emailVerified) {
this.router.navigate(['map']);
}
},
Expand Down

0 comments on commit 6126e82

Please sign in to comment.