public static void Logout()
        {
            PTIdentity  identity  = PTIdentity.UnauthenticatedIdentity();
            PTPrincipal principal = new PTPrincipal(identity);

            Csla.ApplicationContext.User = principal;
        }
Exemple #2
0
 private static bool SetPrincipal(ICslaIdentity identity)
 {
     if (identity.IsAuthenticated)
     {
         PTPrincipal principal = new PTPrincipal(identity);
         Csla.ApplicationContext.User = principal;
     }
     OnNewUser();
     return(identity.IsAuthenticated);
 }
Exemple #3
0
 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;
 }