Beispiel #1
0
        public SYS_User CheckLogIn(string userName, string passWord, int Type, int IDDonVi)
        {
            SYS_User result = _sys_userDataAccess.SelectUserByUserNameAndType(userName, Type, IDDonVi);

            if (result.Password == SYS_User.Encrypt(passWord))
            {
                return(result);
            }
            return(null);
        }
Beispiel #2
0
        public SYS_User CheckLogIn(string userName, string passWord, int IDOrganization)
        {
            SYS_User result = _sys_userDataAccess.SelectUserByUserNameAndIDOrganization(userName, IDOrganization);

            if (result.Password == SYS_User.Encrypt(passWord))
            {
                return(result);
            }
            return(null);
        }
Beispiel #3
0
        public SYS_User CheckLogIn(string userName, string passWord, string connect)
        {
            //ISYS_ConfigConnectionServer configConnectionServer = Provider.Resolve<ISYS_ConfigConnectionServer>();
            //int moduleID = int.Parse(ConfigurationSettings.AppSettings["DocumentManagement"]);
            //string connect =
            //    configConnectionServer.DecryptSYS_ConfigConnection(Provider.GetConnectStringByModule(moduleID));
            SYS_User result = _sys_userDataAccess.SelectUserByUserName(connect, userName);

            if (result.Password == SYS_User.Encrypt(passWord))
            {
                return(result);
            }
            return(null);
        }