Skip to content

Commit

Permalink
Add changes from wso2-support/identity-apps#280 public fix : wso2/ide…
Browse files Browse the repository at this point in the history
  • Loading branch information
RusJaI committed Feb 21, 2024
1 parent 5b47361 commit ac2cc22
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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") ) { %>
<div class="ui visible negative message" id="error-msg" data-testid="login-page-error-message">
<%=AuthenticationEndpointUtil.i18n(resourceBundle, "error.user.account.locked.incorrect.login.attempts")%>
</div>
<% } else if (Boolean.parseBoolean(loginFailed) &&
!errorCode.equals(IdentityCoreConstants.USER_ACCOUNT_NOT_CONFIRMED_ERROR_CODE)) { %>
<div class="ui visible negative message" id="error-msg" data-testid="login-page-error-message">
<%= AuthenticationEndpointUtil.i18n(resourceBundle, errorMessage) %>
</div>
Expand Down

0 comments on commit ac2cc22

Please sign in to comment.