log remove

This commit is contained in:
Anthony Stirling 2023-12-25 15:17:06 +00:00
parent a286a92ede
commit b962e867d8
2 changed files with 0 additions and 2 deletions

View file

@ -32,7 +32,6 @@ public class CustomAuthenticationFailureHandler extends SimpleUrlAuthenticationF
String username = request.getParameter("username"); String username = request.getParameter("username");
if(loginAttemptService.loginAttemptCheck(username)) { if(loginAttemptService.loginAttemptCheck(username)) {
setDefaultFailureUrl("/login?error=locked"); setDefaultFailureUrl("/login?error=locked");
System.out.println("test?");
} else { } else {
if (exception.getClass().isAssignableFrom(BadCredentialsException.class)) { if (exception.getClass().isAssignableFrom(BadCredentialsException.class)) {

View file

@ -44,7 +44,6 @@ public class IPRateLimitingFilter implements Filter {
String clientIp = request.getRemoteAddr(); String clientIp = request.getRemoteAddr();
requestCounts.computeIfAbsent(clientIp, k -> new AtomicInteger(0)); requestCounts.computeIfAbsent(clientIp, k -> new AtomicInteger(0));
System.out.println(requestCounts.get(clientIp).get() + ", " + requestURI );
if (!"GET".equalsIgnoreCase(method)) { if (!"GET".equalsIgnoreCase(method)) {
if (requestCounts.get(clientIp).incrementAndGet() > maxRequests) { if (requestCounts.get(clientIp).incrementAndGet() > maxRequests) {