留言板

Update Existing User's possword

thumbnail
Chirag M Gurav,修改在9 年前。

Update Existing User's possword

Junior Member 帖子: 34 加入日期: 13-1-4 最近的帖子
Hi,

can any one suggest me how can i update password of existing user's in Liferay 6.2 GA2

I Use the UserLocalServiceUtil.updatePassword(userId, "old-pwd", "new-pwd", false);

but it give me the com.liferay.portal.UserPasswordException

My requirement is current user able to update his password just enter new password and confirm password in my custom form
Anonymous Anonymous,修改在9 年前。

RE: Update Existing User's possword (答复)

Regular Member 帖子: 127 加入日期: 19-9-16 最近的帖子
Hi


as you are updating the user password you have to pass the new password only ,no need to pass the old password

UserLocalServiceUtil.updatePassword(userId, "newpassword", "newpassword", false);




thank You
Enayath
thumbnail
Chirag M Gurav,修改在9 年前。

RE: Update Existing User's possword

Junior Member 帖子: 34 加入日期: 13-1-4 最近的帖子
Thank you it's working now ... emoticon