fix: Redirect to homepage after login
This commit is contained in:
parent
cc8f553d66
commit
3b1a97c08a
2 changed files with 2 additions and 2 deletions
|
@ -21,6 +21,6 @@ export default class LoginSuccessComponent implements OnInit {
|
||||||
const user = await this.userService.getOrCreateUser(userProfile);
|
const user = await this.userService.getOrCreateUser(userProfile);
|
||||||
sessionStorage.setItem('user', JSON.stringify(user));
|
sessionStorage.setItem('user', JSON.stringify(user));
|
||||||
|
|
||||||
this.router.navigate(['']);
|
this.router.navigate(['home']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<span>Trustworthy Casino</span>
|
<span>Trustworthy Casino</span>
|
||||||
</a>
|
</a>
|
||||||
<div class="hidden md:flex items-center space-x-1">
|
<div class="hidden md:flex items-center space-x-1">
|
||||||
<a routerLink="/games" class="nav-link">Spiele</a>
|
<a routerLink="/home" class="nav-link">Spiele</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue