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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Login Authentication

Gideon7 opened this issue · comments

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.