mitao
2024-05-22 e766824acc08c6f66fb41f9d03fbeafcf3093c3f
ruoyi-auth/src/main/java/com/ruoyi/auth/service/SysLoginService.java
@@ -155,9 +155,6 @@
        if (R.FAIL == userInfo.getCode()) {
            throw new ServiceException(userInfo.getMsg());
        }
        if (!passwordService.matches(userInfo.getData().getSysUser(), password)) {
            throw new ServiceException("旧密码错误,请重新输入!");
        }
        remoteUserService.changePassword(username, SecurityUtils.encryptPassword(password),
                SecurityConstants.INNER);
    }