Skip to content

Commit

Permalink
fix more
Browse files Browse the repository at this point in the history
  • Loading branch information
patriot1burke committed Dec 16, 2017
1 parent 1eec274 commit 80be4c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ public boolean enabledUser(AuthenticationFlowContext context, UserModel user) {
context.getEvent().error(Errors.USER_DISABLED);
Response challengeResponse = disabledUser(context);
// this is not a failure so don't call failureChallenge.
//context.failureChallenge(AuthenticationFlowError.USER_DISABLED, challengeResponse);
context.forceChallenge(challengeResponse);
return false;
}
Expand All @@ -135,6 +136,7 @@ public boolean enabledUser(AuthenticationFlowContext context, UserModel user) {
context.getEvent().error(Errors.USER_TEMPORARILY_DISABLED);
Response challengeResponse = temporarilyDisabledUser(context);
// this is not a failure so don't call failureChallenge.
//context.failureChallenge(AuthenticationFlowError.USER_TEMPORARILY_DISABLED, challengeResponse);
context.forceChallenge(challengeResponse);
return false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ public void testWait() throws Exception {
// KEYCLOAK-5420
// Test to make sure that temporarily disabled doesn't increment failure count
testingClient.testing().setTimeOffset(Collections.singletonMap("offset", String.valueOf(52)));
// should be unlocked now
loginSuccess();
clearUserFailures();
clearAllUserFailures();
Expand Down

0 comments on commit 80be4c9

Please sign in to comment.