Fórum
Update Existing User's possword
Chirag M Gurav, modificado 9 Anos atrás.
Update Existing User's possword
Junior Member Postagens: 34 Data de Entrada: 04/01/13 Postagens Recentes
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
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 9 Anos atrás.
RE: Update Existing User's possword (Resposta)
Regular Member Postagens: 127 Data de Entrada: 16/09/19 Postagens Recentes
Hi
as you are updating the user password you have to pass the new password only ,no need to pass the old password
thank You
Enayath
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
Chirag M Gurav, modificado 9 Anos atrás.
RE: Update Existing User's possword
Junior Member Postagens: 34 Data de Entrada: 04/01/13 Postagens Recentes
Thank you it's working now ...