Forums

Home » Liferay Portal » English » 2. Using Liferay » General

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Ahamed Sakir
LR 6.1 - CE - forgot password - password showing null in mail
May 15, 2012 4:26 AM
Answer

Ahamed Sakir

Rank: Regular Member

Posts: 116

Join Date: August 22, 2008

Recent Posts

Hi All
When i am doing forgot password , password is coming null in mail.

Even I am having user Object but user.getPasswordUnencrypted() is giving null.
I could not able to decrypt user.getPassword() also.
Is it possible how to decrypt the password?

Regards
Sakir
Hitoshi Ozawa
RE: LR 6.1 - CE - forgot password - password showing null in mail
May 15, 2012 4:29 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

Is it possible how to decrypt the password?


No. It's not possible. If you want to send current password, you'll have to disable password encryption.
Another option, which is liferay's default, is to send new password.
Mika Koivisto
RE: LR 6.1 - CE - forgot password - password showing null in mail
May 16, 2012 2:45 PM
Answer

Mika Koivisto

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1501

Join Date: August 7, 2006

Recent Posts

You know that Liferay 6.1 sends a password reset link by default instead of a new password. It's more secure and way less annoying if someone tries to abuse the system by requesting forgotten password on account that is not theirs. You can even adjust the link validity in Password Policy. By default I think the link is valid for 24 hours.
Hitoshi Ozawa
RE: LR 6.1 - CE - forgot password - password showing null in mail
May 16, 2012 5:17 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

Thanks again Mika. To be totally accurate, Liferay 6.1 doesn't send a new password by mail, it's sending a link to a reset password page by mail.

Going back to the original question, it's still not possible to send a password by mail unless you decide to keep you password unencrypted.

I'm getting a little tired this month. Two proposals with demos and I have a overseas visitor here. Need rest. Especially since I fell walking on a sidewalk and now my left side of my face and shoulder is all black with bruises. Not very good. Getting more people to help me. :-)
Subhasis Roy
RE: LR 6.1 - CE - forgot password - password showing null in mail
July 11, 2012 12:41 AM
Answer

Subhasis Roy

Rank: Regular Member

Posts: 234

Join Date: January 19, 2012

Recent Posts

Hitoshi Ozawa:
To be totally accurate, Liferay 6.1 doesn't send a new password by mail, it's sending a link to a reset password page by mail.




Can you please tell me at which class Liferay6.1ee creates the link which shows the reset password page.
Mika Koivisto
RE: LR 6.1 - CE - forgot password - password showing null in mail
August 27, 2012 11:48 AM
Answer

Mika Koivisto

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1501

Join Date: August 7, 2006

Recent Posts

It's done in UserLocalServiceImpl