fix: Fix bug where verification page doesnt redirect (CAS-80) #202

Merged
jank merged 1 commit from bugfix/verification-redirect into main 2025-05-21 06:57:30 +00:00

View file

@ -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 },
}); });
}); });