diff --git a/modules/distribution/product/src/main/extensions/header.jsp b/modules/distribution/product/src/main/extensions/header.jsp index 99d246b21c..53b7096257 100644 --- a/modules/distribution/product/src/main/extensions/header.jsp +++ b/modules/distribution/product/src/main/extensions/header.jsp @@ -59,6 +59,7 @@ String logoWidth = "50"; String logoAltText = ""; File customCSSFile = null; + FileReader fr = null; String customCSS = ""; String tenantThemeDirectoryName = ""; boolean showCookiePolicy = true; @@ -77,7 +78,8 @@ File themeFile = new File(tenantThemeFile); customCSSFile = new File(customCSS); if (themeFile != null && themeFile.exists() && themeFile.isFile()) { - FileReader fr = new FileReader(themeFile); + try { + fr = new FileReader(themeFile); JSONParser parser = new JSONParser(); Object obj = parser.parse(fr); JSONObject jsonObject = (JSONObject) obj; @@ -126,6 +128,11 @@ showPrivacyPolicy = (Boolean)(privacyPolicyThemeObj.get("visible")); privacyPolicyText = (String)privacyPolicyThemeObj.get("text"); } + } finally { + if (fr != null) { + fr.close(); + } + } } } } diff --git a/modules/distribution/product/src/main/extensions/self-registration-with-verification.jsp b/modules/distribution/product/src/main/extensions/self-registration-with-verification.jsp index f478e97ff7..30ef732419 100644 --- a/modules/distribution/product/src/main/extensions/self-registration-with-verification.jsp +++ b/modules/distribution/product/src/main/extensions/self-registration-with-verification.jsp @@ -382,14 +382,14 @@ <%=IdentityManagementEndpointUtil.i18n(recoveryResourceBundle, "Password")%> + class="form-control" autocomplete="off" required>
+ data-match="reg-password" autocomplete="off" required>