diff --git a/src/main/java/com/teaching/backend/service/impl/umsAdmin/UmsUserServiceImpl.java b/src/main/java/com/teaching/backend/service/impl/umsAdmin/UmsUserServiceImpl.java index 7f10c50..39ae7b4 100644 --- a/src/main/java/com/teaching/backend/service/impl/umsAdmin/UmsUserServiceImpl.java +++ b/src/main/java/com/teaching/backend/service/impl/umsAdmin/UmsUserServiceImpl.java @@ -244,7 +244,7 @@ public class UmsUserServiceImpl extends ServiceImpl impl } UmsUser umsUser = userList.get(0); if(!passwordEncoder.matches(param.getOldPassword(),umsUser.getPassword())){ - throw new BusinessException(400,"密码重复"); + throw new BusinessException(400,"原密码错误"); } umsUser.setPassword(passwordEncoder.encode(param.getNewPassword())); updateById(umsUser);