Commit 8773864b5b5b3818f0007071d35a2c7c6ca5540b

Authored by 648540858
Committed by GitHub
2 parents 2c3f6417 ccbef9b5

Merge pull request #786 from zhulangren/wvp-28181-2.0

Update UserController.java
src/main/java/com/genersoft/iot/vmp/vmanager/user/UserController.java
@@ -83,8 +83,8 @@ public class UserController { @@ -83,8 +83,8 @@ public class UserController {
83 if (user == null) { 83 if (user == null) {
84 throw new ControllerException(ErrorCode.ERROR100); 84 throw new ControllerException(ErrorCode.ERROR100);
85 } 85 }
86 - int userId = SecurityUtils.getUserId();  
87 - boolean result = userService.changePassword(userId, DigestUtils.md5DigestAsHex(password.getBytes())); 86 + //int userId = SecurityUtils.getUserId();
  87 + boolean result = userService.changePassword(user.getId(), DigestUtils.md5DigestAsHex(password.getBytes()));
88 if (!result) { 88 if (!result) {
89 throw new ControllerException(ErrorCode.ERROR100); 89 throw new ControllerException(ErrorCode.ERROR100);
90 } 90 }