ng-ttc-frontend: sep userrole, added roleGuard
Some checks failed
Build Docker Image / Restart Docker Compose (push) Has been cancelled
Build Docker Image / Build Docker Image (push) Has been cancelled

Signed-off-by: supphakitd <67319010028@technictrang.ac.th>
This commit is contained in:
2025-12-03 06:54:07 +07:00
parent 278bfe80ec
commit 60be3f7890
8 changed files with 104 additions and 272 deletions

View File

@@ -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 {