log remove
This commit is contained in:
parent
a286a92ede
commit
b962e867d8
2 changed files with 0 additions and 2 deletions
|
@ -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)) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue