From 7c8e17a3eb6ab22d894bafdd7dfb68641e9b4305 Mon Sep 17 00:00:00 2001 From: rusirijayodaillesinghe Date: Wed, 21 Feb 2024 15:46:26 +0530 Subject: [PATCH] Add the fix "Show account lock error message on the login page" --- .../product/src/main/extensions/basicauth.jsp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/distribution/product/src/main/extensions/basicauth.jsp b/modules/distribution/product/src/main/extensions/basicauth.jsp index 5d2fd9c09f..d0b5170712 100644 --- a/modules/distribution/product/src/main/extensions/basicauth.jsp +++ b/modules/distribution/product/src/main/extensions/basicauth.jsp @@ -268,7 +268,13 @@ } %> - <% if (Boolean.parseBoolean(loginFailed)) { %> + <% if (StringUtils.equals(request.getParameter("errorCode"), IdentityCoreConstants.USER_ACCOUNT_LOCKED_ERROR_CODE) && + StringUtils.equals(request.getParameter("remainingAttempts"), "0") ) { %> +
+ <%=AuthenticationEndpointUtil.i18n(resourceBundle, "error.user.account.locked.incorrect.login.attempts")%> +
+ <% } else if (Boolean.parseBoolean(loginFailed) && + !errorCode.equals(IdentityCoreConstants.USER_ACCOUNT_NOT_CONFIRMED_ERROR_CODE)) { %>
<%= AuthenticationEndpointUtil.i18n(resourceBundle, errorMessage) %>