cancel
Showing results for 
Search instead for 
Did you mean: 

how to reset user password in java code?

dharmraj
Confirmed Champ
Confirmed Champ

i am creating forget password functionality . so i used admin credentials to update user password .

so i am using 

serviceRegistry.getAuthenticationService().setAuthentication(userName, char [] password); to update the password.

but its not updating 

4 REPLIES 4

kintu_barot
Star Collaborator
Star Collaborator

This can be called by an admin user only.

I hope you have tried to call this as admin only.

If you are still getting the error then please share the error logs you are receiving.

Regards,

Kintu

ContCentric

Regards,
Kintu

Yes i am calling using admin user . admin user can change password of any user.

Is it correct ?

Yes, but if you can share what error you are getting then I can help you.

Regards,

Kintu

ContCentric

Regards,
Kintu

sanjaybandhaniya
Elite Collaborator
Elite Collaborator

You can try this add on for forgot password functionality.

 

Thanks,

Sanjay Bandhniya