openaire-library/login/utils/guardHelper.class.ts

22 lines
592 B
TypeScript

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 LoginErrorCodes {
public static NOT_LOGIN:number =1;
public static NOT_ADMIN:number =2;
public static NOT_VALID:number =3;
public static NOT_CONNECT_ADMIN:number =4;
public static NO_COMMUNITY:number =5;
public static NOT_SUBSCRIBER:number =6;
}