掲示板

Update Existing User's possword

thumbnail
9年前 に Chirag M Gurav によって更新されました。

Update Existing User's possword

Junior Member 投稿: 34 参加年月日: 13/01/04 最新の投稿
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
9年前 に Anonymous Anonymous によって更新されました。

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

Regular Member 投稿: 127 参加年月日: 19/09/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
9年前 に Chirag M Gurav によって更新されました。

RE: Update Existing User's possword

Junior Member 投稿: 34 参加年月日: 13/01/04 最新の投稿
Thank you it's working now ... emoticon