Fórum

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

thumbnail
Ahamed Sakir, modificado 11 Anos atrás.

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

Regular Member Postagens: 129 Data de Entrada: 22/08/08 Postagens Recentes
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, modificado 11 Anos atrás.

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

Liferay Legend Postagens: 7942 Data de Entrada: 24/03/10 Postagens Recentes
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, modificado 11 Anos atrás.

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

Liferay Legend Postagens: 1519 Data de Entrada: 07/08/06 Postagens Recentes
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, modificado 11 Anos atrás.

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

Liferay Legend Postagens: 7942 Data de Entrada: 24/03/10 Postagens Recentes
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, modificado 11 Anos atrás.

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

Expert Postagens: 275 Data de Entrada: 20/01/12 Postagens Recentes
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, modificado 11 Anos atrás.

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

Liferay Legend Postagens: 1519 Data de Entrada: 07/08/06 Postagens Recentes
It's done in UserLocalServiceImpl