How to restore liferay login portlet

I am new to liferay 5.1 technology.

I mistakenly deleted the login portlet, and now I can’t log into the application.

I mean, the portlet for entering the port is no longer visible, any help will be very useful.

+4
source share
2 answers

Could you try clicking the following URL?

local: 8080 / s / portal / login

Replace host and port with host and port number.

If it does not work, try the following. (Make sure the package is correct, because I do not know the package path in 5.1)

http://www.liferay.com/community/forums/-/message_boards/message/5005621

+9
source

In fact, with sufficient perseverance, it would also be possible to block yourself from accessing /c/portal/login (as from Liferay 6.0.6). This can be done by setting the community homepage to a hidden redirect page (as opposed to the default portlet page), as a result of which / c / portal / login is redirected wherever the home page is redirected.

Liferay tries to prevent this by issuing warnings when you try to hide the home page. But you can make some page hidden, and then drag and drop it to the first position on the root level of the site map.

The reason for this is to achieve a certain type of portal navigation (which otherwise would require some distortion in the subject), i.e. make home page redirection one of its children.

Returning to the topic, when /c/portal/login fails, there is another, more reliable (but even more ugly) way to access what can be called a login page - add this ?p_p_id=58&p_p_state=maximized to any unreferenced Liferay page (and possibly remove any other GET parameters, if they exist). This is also basically what /c/portal/login does, but adds it to the home page, so if the home page is a redirect page, it does not display the login portlet in the most compressed state.

+6
source

Source: https://habr.com/ru/post/1412521/


All Articles