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

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.





Comments

Popular posts from this blog

AUI Form In LifeRay

LifeRay 7 with Single Page Application (SPA) features & SennaJs !!! How It works? In LR7 & LR6.2..