Been working on this for a few hours now, pretty frustrating...
router.post(\'/\', passport.authenticate(\'local-signup\', function(err, user, info) { co
In Router.post:
router.post('/', passport.authenticate('local-signup', { successRedirect: '/dashboad', failureRedirect: '/', badRequestMessage: 'Your message you want to change.', //missing credentials failureFlash: true }, function(req, res, next) { ...