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
This commit is contained in:
Jan K9f 2025-05-21 06:57:29 +00:00
commit 898fb41030
No known key found for this signature in database
GPG key ID: 944223E4D46B7412

View file

@ -16,13 +16,13 @@ export class VerifyEmailComponent implements OnInit {
const token = this.route.snapshot.queryParamMap.get('token');
if (!token) {
this.router.navigate(['']);
this.router.navigate(['/']);
console.log('no token');
return;
}
this.authService.verifyEmail(token).subscribe(() => {
this.router.navigate([''], {
this.router.navigate(['/'], {
queryParams: { login: true },
});
});