'Can't update password with jwt spring boot

I had the problem of password encoding with jwt. This is my signup function, in which I encode the password

encoder.encode(signUpRequest.getPassword()),

I had a problem when I update the user password, I can't sign in after updating my password(I lost the password encryption)

update function :

admin.setPassword(encoder.encode(signUpRequest.getPassword())),

this is the result after update :

enter image description here

please any suggestion.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source