private static bool SetPrincipal(BusinessIdentity identity) { if (identity.IsAuthenticated) { var principal = new BusinessPrincipal(identity); Csla.ApplicationContext.User = principal; } return(identity.IsAuthenticated); }
private static bool SetPrincipal(BusinessIdentity identity) { if (identity.IsAuthenticated) { var principal = new BusinessPrincipal(identity); Csla.ApplicationContext.User = principal; } return identity.IsAuthenticated; }
public static void LoadPrincipal(string username) { BusinessPrincipal.SetPrincipal(BusinessIdentity.GetIdentity(username)); }
public static bool Login(string username, string password) { return(BusinessPrincipal.SetPrincipal(BusinessIdentity.GetIdentity(username, password))); }