Skip to content

Commit

Permalink
Fix customization option for idp logo(requested by customers)
Browse files Browse the repository at this point in the history
  • Loading branch information
syntrydy committed Jul 20, 2021
1 parent 004a881 commit a26f82a
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -22,6 +22,7 @@ public class IdpLogoServlet extends HttpServlet {
private Logger logger;

private static final long serialVersionUID = 5445488800130871634L;
private String defaultLogoFileName = "logo.png";

private static final Logger log = LoggerFactory.getLogger(IdpLogoServlet.class);

Expand All @@ -39,7 +40,6 @@ protected void doGet(HttpServletRequest request, HttpServletResponse response) {
}

private boolean readDefaultLogo(HttpServletResponse response) {
String defaultLogoFileName = "logo.png";
ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
InputStream in = classLoader.getResourceAsStream(defaultLogoFileName);
OutputStream out = null;
Expand Down Expand Up @@ -76,7 +76,7 @@ private boolean readCustomLogo(HttpServletResponse response, Object organization
if (!directory.exists()) {
directory.mkdir();
}
File logoPath = new File(BASE_IDP_LOGO_PATH + "");
File logoPath = new File(BASE_IDP_LOGO_PATH + defaultLogoFileName);
if (!logoPath.exists()) {
return false;
}
Expand Down

0 comments on commit a26f82a

Please sign in to comment.