Ejemplo n.º 1
0
 /// <summary>
 /// Is type || IsMod
 /// </summary>
 /// <param name="type"></param>
 /// <returns></returns>
 public static bool Is(RoleTypeEnum type)
 {
     return(AuthenticationSession.Is(type));
 }
Ejemplo n.º 2
0
 public static void Logout()
 {
     AuthenticationSession.Logout();
     //AuthenticationCookie.Logout();
 }
Ejemplo n.º 3
0
 public static void SetAuthenticationCenter(Account acc, Company center = null)
 {
     AuthenticationSession.SetAuthentication(acc, center);
 }
Ejemplo n.º 4
0
 public static void SetAuthentication(Account acc)
 {
     AuthenticationSession.SetAuthentication(acc);
     //AuthenticationCookie.SetAuthentication(acc);//for admin CP only
 }