Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Change login behaviour to modal popup only
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.