log remove
This commit is contained in:
@@ -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)) {
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user