掲示板

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

thumbnail
11年前 に Ahamed Sakir によって更新されました。

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

Regular Member 投稿: 129 参加年月日: 08/08/22 最新の投稿
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
11年前 に Hitoshi Ozawa によって更新されました。

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

Liferay Legend 投稿: 7942 参加年月日: 10/03/24 最新の投稿
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
11年前 に Mika Koivisto によって更新されました。

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

Liferay Legend 投稿: 1519 参加年月日: 06/08/07 最新の投稿
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
11年前 に Hitoshi Ozawa によって更新されました。

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

Liferay Legend 投稿: 7942 参加年月日: 10/03/24 最新の投稿
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
11年前 に Subhasis Roy によって更新されました。

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

Expert 投稿: 275 参加年月日: 12/01/20 最新の投稿
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
11年前 に Mika Koivisto によって更新されました。

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

Liferay Legend 投稿: 1519 参加年月日: 06/08/07 最新の投稿
It's done in UserLocalServiceImpl