Exemple #1
0
        /// <summary>
        /// 登录验证
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public string Login(object obj)
        {
            ArrayList arr = JSON.getPara(obj);
            DataTable dt  = dAL_Login.Login(ValueHandler.GetStringValue(arr[0]), Security.EncryptDES(ValueHandler.GetStringValue(arr[1])));

            if (dt.Rows.Count == 0)
            {
                return("用户名或密码错误!");
            }

            BLL_User.SetUseInfo(dt);
            return("true");
        }
Exemple #2
0
 public bool LoginUser(string Nick, string Password)
 {
     return(objLogin.Login(Nick, Password));
 }