肖海南修改密码功能修改

master
总裁 3 months ago
parent 79ce69b993
commit 1daff442b4
  1. 2
      src/main/java/com/teaching/backend/service/impl/umsAdmin/UmsUserServiceImpl.java

@ -244,7 +244,7 @@ public class UmsUserServiceImpl extends ServiceImpl<UmsUserMapper, UmsUser> 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);

Loading…
Cancel
Save