asked
Creating Nodebird SNS with Vue
4-10. Linking the front and member registration and login
Written on
·
289
0
passport.authenticate('local', (err, user, info) =
이부분에서 console.log로 info를 찍어보면
{ message: 'Missing credentials' }
이렇게 나와서 무조건 로그인에 실패합니다.
어느부분이 문제일까요.?
Answer 2
네네 req.body가 없는 것입니다. 프론트에서 서버로 폼을 통해 제대로 전달되었나 확인해보셔야 할 것 같습니다.
req.body부분이 제대로 전달 안되서 나오나보네요 더찾아보겠습니다!