public static void Logout() { PTIdentity identity = PTIdentity.UnauthenticatedIdentity(); PTPrincipal principal = new PTPrincipal(identity); Csla.ApplicationContext.User = principal; }
private static bool SetPrincipal(ICslaIdentity identity) { if (identity.IsAuthenticated) { PTPrincipal principal = new PTPrincipal(identity); Csla.ApplicationContext.User = principal; } OnNewUser(); return(identity.IsAuthenticated); }
private static bool SetPrincipal(IIdentity identity) { if (identity.IsAuthenticated) { PTPrincipal principal = new PTPrincipal(identity); Csla.ApplicationContext.User = principal; } OnNewUser(); return identity.IsAuthenticated; }
public static bool Login(string username, string password) { PTIdentity identity = PTIdentity.GetIdentity(username, password); if (identity.IsAuthenticated) { PTPrincipal principal = new PTPrincipal(identity); Csla.ApplicationContext.User = principal; } return identity.IsAuthenticated; }
public static bool Login(string username, string password) { PTIdentity identity = PTIdentity.GetIdentity(username, password); if (identity.IsAuthenticated) { PTPrincipal principal = new PTPrincipal(identity); Csla.ApplicationContext.User = principal; } return(identity.IsAuthenticated); }
public static void Logout() { PTIdentity identity = PTIdentity.UnauthenticatedIdentity(); PTPrincipal principal = new PTPrincipal(identity); Csla.ApplicationContext.User = principal; }