public bool SignIn(string UserName, string Password) { bool flag = false; //Signin string userSigin = UserEngineService.SignIn(UserName, Password); if (userSigin == "success") { flag = true; } return(flag); }
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); }
public string CheckSignIn(string UserName, string Password) { return(UserEngineService.SignIn(UserName, Password)); }
public bool SignIn(string UserName) { return(UserEngineService.SignIn(UserName)); }