Commit b57c1ef9 authored by 技术部-任文超's avatar 技术部-任文超

优化

parent 741e1f14
......@@ -52,8 +52,8 @@ public class UserRet implements Serializable {
this.setId(user.getId());
this.setPhoneNo(user.getPhoneNo());
this.setEnable(user.getEnable());
this.setPassword(StringUtils.isBlank(user.getPassword()) ? "" : "*");
this.hasPassword = Objects.nonNull(password) && !Objects.equals("", password);
this.setPassword(null);
this.hasPassword = Objects.nonNull(user.getPassword()) && !Objects.equals("", user.getPassword());
this.setRegisteredFrom(user.getRegisteredFrom());
this.setUuid(user.getUuid());
this.setCreatedAt(createTimeStamp);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment