public String add() {
   this.logger.debug("enter add");
   String organizationNo =
       (String) this.request.getSession().getAttribute(ActionConstant.ORGANIZATIONID);
   User user = (User) this.obj;
   if ((organizationNo != null) && (!"".equals(organizationNo))) {
     Organization organization = new Organization();
     organization.setOrganizationNO(organizationNo);
     user.setOrganization(organization);
   }
   user.setPassword(MD5.getMD5(user.getId(), user.getPassword()));
   int resultValue = getService().add(user);
   addResultMsg(this.request, resultValue);
   return getReturnValue();
 }
Exemple #2
0
 @ClassDiscription(name = "密码")
 public String getPassword_log() {
   return MD5.getMD5("****", this.password);
 }