Commit d1d067bca019464fb0537dd8e18ccec711038249
1 parent
8cd70bb4
fix(DEFECT-731): 密码重置时,原始密码错误提示内容调整
Showing
2 changed files
with
2 additions
and
1 deletions
... | ... | @@ -80,6 +80,7 @@ public enum ErrorMessage { |
80 | 80 | ASSERT_DEFAULT_NAME_NO_CHANGED(400056,"系统预制资源,不能修改名称!"), |
81 | 81 | DATA_BOARD_IS_PRIVATE(400057,"该数据看板不是公有视图"), |
82 | 82 | MESSAGE_SEND_TOO_FAST(400058,"1分钟内请求次数过多,请休息一下!"), |
83 | + PASSWORD_INCORRECT(4010059, "密码错误!"), | |
83 | 84 | HAVE_NO_PERMISSION(500002,"没有修改权限"); |
84 | 85 | private final int code; |
85 | 86 | private String message; | ... | ... |
... | ... | @@ -693,7 +693,7 @@ public class YtUserServiceImpl extends AbstractBaseService<UserMapper, User> |
693 | 693 | // 判断用户密码是否正确 |
694 | 694 | boolean isMatch = passwordEncoder.matches(accountReqDTO.getPassword(), user.getPassword()); |
695 | 695 | if (!isMatch) { |
696 | - throw new YtDataValidationException(ErrorMessage.USERNAME_PASSWORD_INCORRECT.getMessage()); | |
696 | + throw new YtDataValidationException(ErrorMessage.PASSWORD_INCORRECT.getMessage()); | |
697 | 697 | } |
698 | 698 | user.setPassword(accountReqDTO.getResetPassword()); |
699 | 699 | } | ... | ... |