-login guard
All checks were successful
Build Docker Image / Preparing Dependecies (push) Successful in 4s

-caching
-budget
This commit is contained in:
2025-11-19 18:30:35 +07:00
parent 213fd197ef
commit 15308ababa
25 changed files with 667 additions and 479 deletions

View File

@@ -57,7 +57,7 @@ export class LoginContentComponent implements OnInit {
if (result.code === '200' && result.data?.token) {
this.generalService.trowApi(result);
localStorage.setItem('access_token', result.data.token);
this.router.navigate(['main/dashboard']);
this.router.navigate(['main']);
} else {
const errorMessage = result.message_th || result.message || 'Sign-in failed.';
if (this.loginPageComponent) {