Skip to content

Commit 6126e82

Browse files
committed
fix: only redirect if email is verified
1 parent 4553257 commit 6126e82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/login/login.page.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export class LoginPage implements OnInit {
3333

3434
this.authService.getUser().subscribe({
3535
next: (user) => {
36-
if (user) {
36+
if (user && user.emailVerified) {
3737
this.router.navigate(['map']);
3838
}
3939
},

0 commit comments

Comments
 (0)