SaiUpadhyayula / spring-reddit-clone

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
658 stars 386 forks source link

Login Authentication #26

Closed Gideon7 closed 2 years ago

Gideon7 commented 3 years ago

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()));

SaiUpadhyayula commented 2 years ago

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.