complete previous commit - adding src/app/login/utils/guardHelper.class.ts

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@46952 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
argiro.kokogiannaki 2017-04-25 12:10:08 +00:00
parent cbd4dd39ea
commit 98a84db4d8
1 changed files with 18 additions and 0 deletions

View File

@ -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;
}