/// <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"); }
public bool LoginUser(string Nick, string Password) { return(objLogin.Login(Nick, Password)); }