user.getPassword().equals(passwordEncoder.encode(password)) doesn't get a right boolean value to execute user.setPassword(passwordEncoder.encode(newPassword)) correctly aiming to change password.
Though not knowing why, passwordEncoder.matches method works after several attempts to debug.
user.getPassword().equals(passwordEncoder.encode(password))
doesn't get a right boolean value to executeuser.setPassword(passwordEncoder.encode(newPassword))
correctly aiming to change password. Though not knowing why,passwordEncoder.matches
method works after several attempts to debug.