Reddit clone built using Spring Boot, Spring Security with JWT Authentication, Spring Data JPA with MySQL, Spring MVC. The frontend is built using Angular - You can find the frontend source code here - https://github.com/SaiUpadhyayula/angular-reddit-clone
On login, after inputting correct username and password, login response gives bad credentials.
from this code line:
Authentication authenticate = authenticationManager.authenticate(new UsernamePasswordAuthenticationToken(loginRequest.getUsername(), loginRequest.getPassword()));
Sorry for the late reply, I just tested it, works as expected. I believe you may have already found out the reason for the error by now. Let me know if you still need any help.
On login, after inputting correct username and password, login response gives bad credentials.
from this code line: Authentication authenticate = authenticationManager.authenticate(new UsernamePasswordAuthenticationToken(loginRequest.getUsername(), loginRequest.getPassword()));