예제 #1
0
        public bool SignIn(string UserName, string Password)
        {
            bool flag = false;
            //Signin
            string userSigin = UserEngineService.SignIn(UserName, Password);

            if (userSigin == "success")
            {
                flag = true;
            }

            return(flag);
        }
예제 #2
0
        public bool SetWindowsUserAuthenticated()
        {
            bool       flag = false;
            IPrincipal PrincipalPermission = Thread.CurrentPrincipal;

            if (PrincipalPermission.Identity.IsAuthenticated)
            {
                string name       = PrincipalPermission.Identity.Name;
                string NameAuthen = name.Split('\\')[1].ToString();
                flag = UserEngineService.SignIn(NameAuthen);
            }
            return(flag);
        }
예제 #3
0
 public string CheckSignIn(string UserName, string Password)
 {
     return(UserEngineService.SignIn(UserName, Password));
 }
예제 #4
0
 public bool SignIn(string UserName)
 {
     return(UserEngineService.SignIn(UserName));
 }