kongdeqiang
2024-05-23 2746921f12702d4075d857713ac67bbe3de05813
xboot-core/src/main/java/cn/exrick/xboot/core/config/security/DaoAuthenticationProvider.java
@@ -24,8 +24,10 @@
            throw new BadCredentialsException("密码为空");
        }
        String password= authentication.getCredentials().toString();
        password = password.replace("\n","");
        password = Base64.decodeToString(password);
        if (!new BCryptPasswordEncoder().matches(password, userDetails.getPassword())) {
        boolean isPass = new BCryptPasswordEncoder().matches(password, userDetails.getPassword());
        if (!isPass) {
            throw new BadCredentialsException("密码错误");
        }