Foros de discusión

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

thumbnail
Ahamed Sakir, modificado hace 11 años.

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

Regular Member Mensajes: 129 Fecha de incorporación: 22/08/08 Mensajes recientes
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 hace 11 años.

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

Liferay Legend Mensajes: 7942 Fecha de incorporación: 24/03/10 Mensajes recientes
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 hace 11 años.

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

Liferay Legend Mensajes: 1519 Fecha de incorporación: 7/08/06 Mensajes recientes
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 hace 11 años.

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

Liferay Legend Mensajes: 7942 Fecha de incorporación: 24/03/10 Mensajes recientes
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 hace 11 años.

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

Expert Mensajes: 275 Fecha de incorporación: 20/01/12 Mensajes recientes
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 hace 11 años.

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

Liferay Legend Mensajes: 1519 Fecha de incorporación: 7/08/06 Mensajes recientes
It's done in UserLocalServiceImpl