Compare commits
2 commits
Author | SHA1 | Date | |
---|---|---|---|
898fb41030 |
|||
876bf2f427 |
1 changed files with 2 additions and 2 deletions
|
@ -16,13 +16,13 @@ export class VerifyEmailComponent implements OnInit {
|
||||||
const token = this.route.snapshot.queryParamMap.get('token');
|
const token = this.route.snapshot.queryParamMap.get('token');
|
||||||
|
|
||||||
if (!token) {
|
if (!token) {
|
||||||
this.router.navigate(['']);
|
this.router.navigate(['/']);
|
||||||
console.log('no token');
|
console.log('no token');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.authService.verifyEmail(token).subscribe(() => {
|
this.authService.verifyEmail(token).subscribe(() => {
|
||||||
this.router.navigate([''], {
|
this.router.navigate(['/'], {
|
||||||
queryParams: { login: true },
|
queryParams: { login: true },
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Reference in a new issue