From 1daff442b4d778856f32bebe3879d766da972818 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=80=BB=E8=A3=81?= <14186472+wenyu441069198@user.noreply.gitee.com> Date: Wed, 14 Aug 2024 16:18:31 +0800 Subject: [PATCH] =?UTF-8?q?=E8=82=96=E6=B5=B7=E5=8D=97=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=AF=86=E7=A0=81=E5=8A=9F=E8=83=BD=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../backend/service/impl/umsAdmin/UmsUserServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);