Message Boards

Change login behaviour to modal popup only

Uwe Peters, modified 3 Years ago.

Change login behaviour to modal popup only

New Member Posts: 22 Join Date: 11/24/20 Recent Posts

Hello,

I am trying to change the behaviour of the liferay login in Liferay CE 7.3.5ga6. 
Our customer wants that there is no login page and the login modal is the only login form that can be shown to the user.

By default liferay is redirecting me to 

http://localhost:8080/web/guest/home?p_p_id=com_liferay_login_web_portlet_LoginPortlet&p_p_lifecycle=0&p_p_state=maximized&saveLastPath=false

everytime if I

  • type in wrong credentials (and it shows me there the login wrong credentials error message).
  • try to open a link to a 'private page'. A page that has no guest permission.

Is there any way to disable the redirect to the loginPortlet in maximized state and show the login modal?

What I want to achieve:

  • Instead of the default behaviour described above I want to show the login modal popup. 
  • If the user types in bad credentials I want to show the login modal popup again with the bad credentials errormessage in it. 
  • If I click on a private page link (a page that has no guest permission) the login popup should show up and if I login correctly the redirect to the private page is done.