web/web/GwClient.ashx
@@ -323,8 +323,10 @@
        {
            throw new ArgumentException("登录密码不能为空,且必须为4-10位英文或数字字符组合!");
        }
        GwClient gwClient = _Dao.Get(clientID);
        //密码MD5加密,
        newPwd += gwClient.Salt;
        newPwd = DataHelper.MD5Hex(newPwd);
        _Dao.UpdatePassword(clientID, newPwd);
@@ -404,7 +406,7 @@
        int id = Int32.Parse(context.GetString("id"));
        string clientID = context.GetString("clientID");
        string company = context.GetString("company");
        string password = context.GetString("password");
        //string password = context.GetString("password");
        string clientName = context.GetString("clientName");
        string address = context.GetString("address");
        string telephone = context.GetString("telephone");
@@ -691,12 +693,15 @@
            }
        }
        string salt = DataConverter.getRandom(6);
        password += salt;
        //密码加密
        password = DataHelper.MD5Hex(password);
        var client = new Model.GwClient();
        client.ClientID = clientID;
        client.Password = password;
        client.Salt = salt;
        client.ClientName = clientName;
        client.Address = address;