Skip to content

Commit

Permalink
minor complexity fix
Browse files Browse the repository at this point in the history
  • Loading branch information
albogdano committed May 8, 2020
1 parent b563550 commit cce4217
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -310,7 +310,7 @@ private UserAuthentication getOrCreateUser(App app, String identityProvider, Str
return ldapAuth.getOrCreateUser(app, accessToken);
} else if ("passwordless".equalsIgnoreCase(identityProvider)) {
return passwordlessAuth.getOrCreateUser(app, accessToken);
} else if ("password".equalsIgnoreCase(identityProvider) || "generic".equalsIgnoreCase(identityProvider)) {
} else if (StringUtils.equalsAnyIgnoreCase(identityProvider, "password", "generic")) {
return passwordAuth.getOrCreateUser(app, accessToken);
}
return null;
Expand Down

0 comments on commit cce4217

Please sign in to comment.