From b962e867d8ecf15069814fa8f2ccea21084ee225 Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> Date: Mon, 25 Dec 2023 15:17:06 +0000 Subject: [PATCH] log remove --- .../SPDF/config/security/CustomAuthenticationFailureHandler.java | 1 - .../software/SPDF/config/security/IPRateLimitingFilter.java | 1 - 2 files changed, 2 deletions(-) diff --git a/src/main/java/stirling/software/SPDF/config/security/CustomAuthenticationFailureHandler.java b/src/main/java/stirling/software/SPDF/config/security/CustomAuthenticationFailureHandler.java index 9d8ff07c..397a8a70 100644 --- a/src/main/java/stirling/software/SPDF/config/security/CustomAuthenticationFailureHandler.java +++ b/src/main/java/stirling/software/SPDF/config/security/CustomAuthenticationFailureHandler.java @@ -32,7 +32,6 @@ public class CustomAuthenticationFailureHandler extends SimpleUrlAuthenticationF String username = request.getParameter("username"); if(loginAttemptService.loginAttemptCheck(username)) { setDefaultFailureUrl("/login?error=locked"); - System.out.println("test?"); } else { if (exception.getClass().isAssignableFrom(BadCredentialsException.class)) { diff --git a/src/main/java/stirling/software/SPDF/config/security/IPRateLimitingFilter.java b/src/main/java/stirling/software/SPDF/config/security/IPRateLimitingFilter.java index 6c47604c..22bf653d 100644 --- a/src/main/java/stirling/software/SPDF/config/security/IPRateLimitingFilter.java +++ b/src/main/java/stirling/software/SPDF/config/security/IPRateLimitingFilter.java @@ -44,7 +44,6 @@ public class IPRateLimitingFilter implements Filter { String clientIp = request.getRemoteAddr(); requestCounts.computeIfAbsent(clientIp, k -> new AtomicInteger(0)); - System.out.println(requestCounts.get(clientIp).get() + ", " + requestURI ); if (!"GET".equalsIgnoreCase(method)) { if (requestCounts.get(clientIp).incrementAndGet() > maxRequests) {