My issue is that I am updating the UserDetailsImpl which I thought would automatically update the database... but it doesn't.
THE CONTROLLER
@CrossOrigin(origins = "*", maxAge = 3600)
@RestController
@RequestMapping("/api/auth")
public class ProfileEditingController {
@Autowired
AuthenticationManager authenticationManager;
@Autowired
UserRepository userRepository;
@Autowired
RoleRepository roleRepository;
@Autowired
PasswordEncoder encoder;
@Autowired
JwtUtils jwtUtils;
@PutMapping
…
Top comments (0)