public static void trackFailedAuthenticationAttempt(final RequestContext requestContext) {
        val flowScope = requestContext.getFlowScope();
        val attempts = flowScope.contains("authenticationFailureCount", Integer.class)
            ? flowScope.get("authenticationFailureCount", Integer.class)
            : 0;
        flowScope.put("authenticationFailureCount", attempts + 1);
    }
Track failed authentication attempts.

@param requestContext the request context
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java