Breezy-Traveler / Breezy-Traveler-API

Api service for the client ios app
1 stars 0 forks source link

Remove `req.flash(..)` from Passport #92

Closed LinnierGames closed 5 years ago

LinnierGames commented 5 years ago

I believe we still have some flash messaging from when we had a frontend for the login

This is the error I got when I typed the wrong password when logging in

events.js:183
      throw er; // Unhandled 'error' event
      ^

TypeError: req.flash is not a function
    at /Users/ericksanc/Developer/My Projects/Breezy Travelers/breezy-traveler-api/src/config/passport.js:73:40
    at /Users/ericksanc/Developer/My Projects/Breezy Travelers/breezy-traveler-api/node_modules/mongoose/lib/model.js:4518:16
    at process.nextTick (/Users/ericksanc/Developer/My Projects/Breezy Travelers/breezy-traveler-api/node_modules/mongoose/lib/query.js:2579:28)
    at _combinedTickCallback (internal/process/next_tick.js:131:7)
    at process._tickCallback (internal/process/next_tick.js:180:9)