@frontend Etter login burde bruker sendes til iternsiden
Closed this issue · 1 comments
sjsivert commented
Si fra hvis du trenger hjelp/hint til dette Sindre
Mikkel94 commented
Sindre skriver ;):
Added this
logoutAction() {
// added this
this.router.navigateByUrl('/');
}
and this:
loginAction(data: ILoginRequest) {
// and this
if (res.groups.indexOf('FG') !== -1) {
this.router.navigateByUrl('/intern/opplasting');
} else if (res.groups.indexOf('POWER') !== -1 || res.groups.indexOf('HUSFOLK') !== -1) {
this.router.navigateByUrl('/intern/søk');
}