KEYCLOAK-5420

This commit is contained in:
Bill Burke committed 2017-12-15 12:16:24 -05:00
1 parent 1c38cec10f
commit 7cb39c2dfc
3 files changed
+25 -3

No files matched your search

@@ -125,7 +125,8 @@ public abstract class AbstractUsernameFormAuthenticator extends AbstractFormAuth
context.getEvent().user(user);
context.getEvent().error(Errors.USER_DISABLED);
Response challengeResponse = disabledUser(context);
context.failureChallenge(AuthenticationFlowError.USER_DISABLED, challengeResponse);
// this is not a failure so don't call failureChallenge.
context.forceChallenge(challengeResponse);
return false;
}
if (context.getRealm().isBruteForceProtected()) {
@@ -133,7 +134,8 @@ public abstract class AbstractUsernameFormAuthenticator extends AbstractFormAuth
context.getEvent().user(user);
context.getEvent().error(Errors.USER_TEMPORARILY_DISABLED);
Response challengeResponse = temporarilyDisabledUser(context);
context.failureChallenge(AuthenticationFlowError.USER_TEMPORARILY_DISABLED, challengeResponse);
// this is not a failure so don't call failureChallenge.
context.forceChallenge(challengeResponse);
return false;
}
}