Commit 413575c1b9447c541802399f024c68fbdaf73baf
1 parent
9921ed15d6
Exists in
master
and in
1 other branch
修改新电子病历
Showing 1 changed file with 3 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/UsersController.java
View file @
413575c
... | ... | @@ -1073,7 +1073,8 @@ |
1073 | 1073 | */ |
1074 | 1074 | @RequestMapping(value = "/passwords/reset", method = RequestMethod.PUT) |
1075 | 1075 | @TokenRequired |
1076 | - public void updatePassword(HttpServletResponse response, @RequestParam(value = "userId") String id, @RequestParam(value = "pwd", required = false) String pwd) { | |
1076 | + public void updatePassword(HttpServletResponse response, @RequestParam(value = "userId") String id, | |
1077 | + @RequestParam(value = "pwd", required = false) String pwd) { | |
1077 | 1078 | Users users = usersService.getUsers(Integer.valueOf(id)); |
1078 | 1079 | if (users == null) { |
1079 | 1080 | ResultUtils.buildParameterErrorResultAndWrite(response, "用户ID不存在"); |
... | ... | @@ -1081,7 +1082,7 @@ |
1081 | 1082 | } |
1082 | 1083 | if (StringUtils.isNotBlank(pwd)) { |
1083 | 1084 | if (MD5Utils.md5(pwd).equals(users.getPwd())) { |
1084 | - ResultUtils.buildResultAndWrite(response,ErrorCodeConstants.USER_PASSWORD_ERROR, "新密码不能和老密码相同"); | |
1085 | + ResultUtils.buildResultAndWrite(response,ErrorCodeConstants.USER_PASSWORD_ERROR, "新密码不能和初始密码相同"); | |
1085 | 1086 | return; |
1086 | 1087 | } |
1087 | 1088 | users.setPwd(MD5Utils.md5(pwd)); |