fix: Fix bug where verification page doesnt redirect
All checks were successful
CI / Get Changed Files (pull_request) Successful in 8s
CI / Checkstyle Main (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Has been skipped
CI / eslint (pull_request) Successful in 25s
CI / prettier (pull_request) Successful in 28s
CI / oxlint (pull_request) Successful in 30s
CI / test-build (pull_request) Successful in 42s
CI / Docker frontend validation (pull_request) Successful in 48s

This commit is contained in:
Jan K9f 2025-05-21 08:55:23 +02:00
commit 876bf2f427

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