bradtraversy / node_passport_login

Node.js login, registration and access control using Express and Passport
1.74k stars 1.29k forks source link

findone issue #62

Open anurag-4345 opened 4 years ago

anurag-4345 commented 4 years ago

Cannot read property 'findOne' of undefined

monkey-cat commented 4 years ago

More details

kushwahasanket commented 3 years ago

probably you have included the body-parser ..use that middleware in app.js file app.use(express.urlencoded({ extended: true })); include this in app.js hope it will work