Skip to content

Commit

Permalink
Remove username validation from the select user flow to allow for IDP…
Browse files Browse the repository at this point in the history
… users to login
  • Loading branch information
imduffy15 committed Nov 19, 2019
1 parent 69def8f commit 0f0ceef
Showing 1 changed file with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,16 +134,6 @@ private boolean validateUsernameForm(AuthenticationFlowContext context, Multival
context.getEvent().detail(Details.USERNAME, username);
context.getAuthenticationSession().setAuthNote(AbstractUsernameFormAuthenticator.ATTEMPTED_USERNAME, username);

UserModel user = lookupUser(context, username);

if (invalidUser(context, user)) {
return false;
}

if (!enabledUser(context, user)) {
return false;
}

String rememberMe = inputData.getFirst("rememberMe");
boolean remember = rememberMe != null && rememberMe.equalsIgnoreCase("on");
if (remember) {
Expand All @@ -152,7 +142,7 @@ private boolean validateUsernameForm(AuthenticationFlowContext context, Multival
} else {
context.getAuthenticationSession().removeAuthNote(Details.REMEMBER_ME);
}
context.setUser(user);

return true;
}

Expand Down

0 comments on commit 0f0ceef

Please sign in to comment.