Compare commits

...

2 commits

Author SHA1 Message Date
898fb41030
Merge pull request 'fix: Fix bug where verification page doesnt redirect (CAS-80)' (!202) from bugfix/verification-redirect into main
All checks were successful
Release / Release (push) Successful in 1m0s
Release / Build Backend Image (push) Successful in 23s
Release / Build Frontend Image (push) Successful in 28s
Reviewed-on: #202
2025-05-21 06:57:29 +00:00
876bf2f427 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
2025-05-21 08:55:39 +02: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 },
}); });
}); });