Foren

LR 6.1 - CE - forgot password - password showing null in mail

thumbnail
Ahamed Sakir, geändert vor 11 Jahren.

LR 6.1 - CE - forgot password - password showing null in mail

Regular Member Beiträge: 129 Beitrittsdatum: 22.08.08 Neueste Beiträge
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
thumbnail
Hitoshi Ozawa, geändert vor 11 Jahren.

RE: LR 6.1 - CE - forgot password - password showing null in mail

Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
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.
thumbnail
Mika Koivisto, geändert vor 11 Jahren.

RE: LR 6.1 - CE - forgot password - password showing null in mail

Liferay Legend Beiträge: 1519 Beitrittsdatum: 07.08.06 Neueste Beiträge
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.
thumbnail
Hitoshi Ozawa, geändert vor 11 Jahren.

RE: LR 6.1 - CE - forgot password - password showing null in mail

Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
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. :-)
thumbnail
Subhasis Roy, geändert vor 11 Jahren.

RE: LR 6.1 - CE - forgot password - password showing null in mail

Expert Beiträge: 275 Beitrittsdatum: 20.01.12 Neueste Beiträge
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.
thumbnail
Mika Koivisto, geändert vor 11 Jahren.

RE: LR 6.1 - CE - forgot password - password showing null in mail

Liferay Legend Beiträge: 1519 Beitrittsdatum: 07.08.06 Neueste Beiträge
It's done in UserLocalServiceImpl