Skip to content

Commit

Permalink
Redirect only if ldapEnabled is false
Browse files Browse the repository at this point in the history
  • Loading branch information
jusabatier authored Sep 13, 2024
1 parent 251944d commit e4ee6fd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public String loginPage(@RequestParam Map<String, String> allRequestParams, Mode
});
}

if (oauth2LoginLinks.size() == 1) {
if (oauth2LoginLinks.size() == 1 && !ldapEnabled ) {
return "redirect:"+oauth2LoginLinks.keySet().stream().findFirst().get();
}

Expand Down

0 comments on commit e4ee6fd

Please sign in to comment.