Reteriving guest premissions for the login portlet



  Some times unknowingly admin  may remove the guest permissions for the login portlet and when we try to access the portlet it says "you do not have permission to view the portlet" .

Then we have to retrive back the permisions but portlet is not accessiable  what to do!

Here we go ,

Add the following properties in portal-ext.properties

 auto.login.hooks=com.liferay.portal.security.auth.ParameterAutoLogin ,

Whenever we add parameter in portal-ext.properties we need to resart the server.

Access the url as follows  http://localhost:8080/c/portal/login?parameterAutoLoginLogin=yourscreennameOrEmailAddress&parameterAutoLoginPassword=password

Retrieve back the permission changes and remove the auto.login.hooks from the portal-ext.properties.
Thats it you have done and you will able to see the login portlet

Comments

Popular posts from this blog

Theme display in javascript

How to know which liferay version we are using

Viewing the SQL Query in liferay : debugging the SQL Query in Hibernate