/// <summary> /// 修改密码 /// </summary> /// <returns></returns> public ActionResult SavePwd() { string OldPassword = Request["OldPassword"]; string new1 = Request["new1"]; string new2 = Request["new2"]; if (new1 != new2) { throw new BusinessException("您输入的新密码与确认密码不匹配 "); } string encrptedPassword = AuthMgr.EncryptPassword(OldPassword); string encrptednew1 = AuthMgr.EncryptPassword(new1); SystemUserService systemUserService = new SystemUserService(); systemUserService.ResetSystemUserPassword(CurrUser.UserName, encrptedPassword, encrptednew1, AuthMgr.GetApplicationKey()); //Rpc.Call<int>("AuthService.ResetSystemUserPassword", CurrUser.UserName, encrptedPassword, encrptednew1, AuthMgr.GetApplicationKey()); AuthMgr.Logout(); return(Json(new AjaxResult { Success = true, Message = "修改成功" }, JsonRequestBehavior.AllowGet)); }