xiangpei
2024-07-09 9a7ee496344f044c89deddb70600b7e4d6017e1f
src/main/java/com/ycl/jxkg/service/impl/AuthenticationServiceImpl.java
@@ -12,28 +12,12 @@
@Service
public class AuthenticationServiceImpl implements AuthenticationService {
    private final UserService userService;
    private final SystemConfig systemConfig;
    @Autowired
    public AuthenticationServiceImpl(UserService userService, SystemConfig systemConfig) {
        this.userService = userService;
    public AuthenticationServiceImpl(SystemConfig systemConfig) {
        this.systemConfig = systemConfig;
    }
    /**
     * @param username username
     * @param password password
     * @return boolean
     */
    @Override
    public boolean authUser(String username, String password) {
        User user = userService.getUserByUserName(username);
        return authUser(user, username, password);
    }
    @Override
    public boolean authUser(User user, String username, String password) {