ng-ttc-frontend: sep userrole, added roleGuard
Signed-off-by: supphakitd <67319010028@technictrang.ac.th>
This commit is contained in:
@@ -62,6 +62,7 @@ export class LoginContentComponent implements OnInit {
|
||||
localStorage.setItem('id', result.data.usrseq);
|
||||
localStorage.setItem('usrthinam', result.data.usrthinam);
|
||||
localStorage.setItem('usrthilstnam', result.data.usrthilstnam);
|
||||
localStorage.setItem('usrrol', result.data.usrrol);
|
||||
this.jwtService.restartCountdown();
|
||||
this.router.navigate(['main']);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user