Forums de discussion
UserLocalServiceUtil.updatePassword , exception UserPasswordException
Man V K, modifié il y a 14 années.
UserLocalServiceUtil.updatePassword , exception UserPasswordException
Regular Member Publications: 138 Date d'inscription: 04/12/07 Publications récentes
Hi,
Iam trying to update the password, i use following code,
UserLocalServiceUtil.updatePassword(user.getUserId(), oldPassword, newpassword, true);
But i get following errors,
exceptioncom.liferay.portal.UserPasswordException
Please any one suggest me what is wrong here.
Thanks
Man.
Iam trying to update the password, i use following code,
UserLocalServiceUtil.updatePassword(user.getUserId(), oldPassword, newpassword, true);
But i get following errors,
exceptioncom.liferay.portal.UserPasswordException
Please any one suggest me what is wrong here.
Thanks
Man.
Sandeep Nair, modifié il y a 14 années.
RE: UserLocalServiceUtil.updatePassword , exception UserPasswordException
Liferay Legend Publications: 1744 Date d'inscription: 06/11/08 Publications récentes
Hi mate,
I don't think its an old as well as new password. Try giving new password in both password1 and password2. AFIK its the two fields are just to verify whether both passwords are same when they are updated.
so try this
UserLocalServiceUtil.updatePassword(user.getUserId(), newPassword, newpassword, true);
The last flag is password reset flag which says whether user should again be able to reset his password on first login after changing password.
Regards,
sandeep
I don't think its an old as well as new password. Try giving new password in both password1 and password2. AFIK its the two fields are just to verify whether both passwords are same when they are updated.
so try this
UserLocalServiceUtil.updatePassword(user.getUserId(), newPassword, newpassword, true);
The last flag is password reset flag which says whether user should again be able to reset his password on first login after changing password.
Regards,
sandeep
Man V K, modifié il y a 14 années.
RE: UserLocalServiceUtil.updatePassword , exception UserPasswordException
Regular Member Publications: 138 Date d'inscription: 04/12/07 Publications récentes
Thanks Nair,
It works.
Man.
It works.
Man.