code: private String updateAccount(Long userId) {
      String email = get("mail");
      String pwd = get("password");
      Map<String, Object> valueMap = CollectUtils.newHashMap();
      valueMap.put("password", pwd);
      valueMap.put("mail", email);
      entityDao.update(User.class, "id", new Object[] { userId }, valueMap);
      return redirect("infolet", "ok.passwordChanged", "&id=" + userId);
    }
docs: 更新指定帐户的密码和邮箱
  
  @param userId