Commit ccefadfa by guojuxing

修改超级管理员密码信息接口修复

parent b0c4103f
......@@ -258,7 +258,7 @@ public class EnterpriseController {
@RequestMapping("/edit-user")
public RestResponse editUser(UserDTO userDTO) {
//自动密码
boolean isAutoPassword = userDTO.getPasswordType() == UserConstants.CREATE_AUTO;
boolean isAutoPassword = userDTO.getPasswordType() != null && userDTO.getPasswordType() == UserConstants.CREATE_AUTO;
String autoPassword = null;
if (isAutoPassword) {
String password = UserPasswordUtil.createPasswordAuto();
......
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