how to reset user password in java code?

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
dharmraj
Active Member

how to reset user password in java code?

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
kintu_barot
Senior Member

Re: how to reset user password in java code?

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
ContCentric
dharmraj
Active Member

Re: how to reset user password in java code?

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

Is it correct ?

kintu_barot
Senior Member

Re: how to reset user password  in java code?

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

Regards,

Kintu

ContCentric

Regards,
Kintu
ContCentric
sanjaybandhniya
Senior Member

Re: how to reset user password in java code?

You can try this add on for forgot password functionality.

 

Thanks,

Sanjay Bandhniya