diff --git a/portal-2/src/app/login/utils/guardHelper.class.ts b/portal-2/src/app/login/utils/guardHelper.class.ts new file mode 100644 index 00000000..0eed04b9 --- /dev/null +++ b/portal-2/src/app/login/utils/guardHelper.class.ts @@ -0,0 +1,18 @@ + +import { Router} from '@angular/router'; + +// export class GuardHelper{ +// constructor(private router: Router) {} +// +// redirect(url:string, errorCode:number, redirectUrl:string){ +// this.router.navigate([url], { queryParams: { "errorCode": errorCode, "redirectUrl": redirectUrl } }); +// +// } +// +// } +export class ErrorCodes { + public static NOT_LOGGIN:number =1; + public static NOT_ADMIN:number =2; + public static NOT_VALID:number =3; + +}