Getting the user password


In Liferay, We know that user password stores in Encrypted format in DB but sometime we have want to know the user password. so what to do??

We have utility method
portalUtil.getUserPassword(portalRequest);


But it gives null value.

So how do we get it?

Add the following properties in the Portal-ext.properties and restart the server.

session.store.password=true
session.shared.attributes.excludes=


Then use the portalUtil.getPassword to get the userPassword.

Thats it!!!  Now we can view the user password.






Comments

  1. Thanks for giving us the useful information about how to get the user password

    ReplyDelete

Post a Comment

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