Foros de discusión

Update Existing User's possword

thumbnail
Chirag M Gurav, modificado hace 9 años.

Update Existing User's possword

Junior Member Mensajes: 34 Fecha de incorporación: 4/01/13 Mensajes recientes
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, modificado hace 9 años.

RE: Update Existing User's possword (Respuesta)

Regular Member Mensajes: 127 Fecha de incorporación: 16/09/19 Mensajes recientes
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, modificado hace 9 años.

RE: Update Existing User's possword

Junior Member Mensajes: 34 Fecha de incorporación: 4/01/13 Mensajes recientes
Thank you it's working now ... emoticon