private void Update_User_Pwd(HttpContext context) { string result = "ok"; user_model = user_bll.GetModel(UserID_HongRenHui); if (user_model != null) { string pwd = String_Manage.Return_Request_Str("pwd"); if (pwd == "") { result = "nopwd"; } else { pwd = NewXzc.Common.DEncrypt.DESEncrypt.Encrypt(pwd);//给密码加密 user_model.PWD = pwd; if (!user_bll.Update(user_model, 2)) { result = "no"; } } } else { result = "nologin"; } context.Response.Write(result); }
private void Update_User_Pwd(HttpContext context) { string result = "ok"; int uid = CheckIsLogin_HongRenHui.GetUserID("FINDRED_HREN_USERID"); string phone = ""; user_model = user_bll.GetModel(uid); if (user_model != null) { if (CookieManage_HongRenHui.GetCookieValue("FINDTEL_HREN_STATE") != "1") { result = "notel"; } else { string pwd = String_Manage.Return_Request_Str("pwd"); if (pwd == "") { result = "nopwd"; } else { pwd = NewXzc.Common.DEncrypt.DESEncrypt.Encrypt(pwd);//给密码加密 user_model.PWD = pwd; if (!user_bll.Update(user_model, 2)) { result = "no"; } } } } else { result = "nologin"; } context.Response.Write(result); }