Exemplo n.º 1
0
        public static bool Login(string username, string password)
        {
            CRIdentity identity = CRIdentity.GetIdentity(username, password);

            if (identity.IsAuthenticated)
            {
                CRPrincipal principal = new CRPrincipal(identity);
                Dothan.ApplicationContext.User = principal;
            }
            return(identity.IsAuthenticated);
        }