Posts

Showing posts with the label Liferay login jsp error message

Hide Default Liferay Error Message in login.jsp (HOOK)

Image
When we are using any Liferay login.jsp, To customise we are using hook !! So In that login.jsp, I dont need default error message like Your request failed to complete. I need to hide  request failed to complete  message . So, To hide particularly this above message, Add the below code, in your login.jsp page <% SessionMessages.add(request, PortalUtil.getPortletId(request) + SessionMessages.KEY_SUFFIX_HIDE_DEFAULT_ERROR_MESSAGE) ;%> And deploy the portlet, Login now. Only Failed to access your account message appears.