diff --git a/README.md b/README.md index bc8b61c8cc..9dae551715 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,6 @@ Table of Contents - [How It Works](#how-it-works-mini-guides) - [Mongoose Cheatsheet](#mongoose-cheatsheet) - [Deployment](#deployment) -- [TODO](#todo) - [Contributing](#contributing) - [License](#license) diff --git a/app.js b/app.js index d93e47bdf0..1e3e07b553 100755 --- a/app.js +++ b/app.js @@ -87,7 +87,7 @@ app.use(function(req, res, next) { // Keep track of previous URL if (req.method !== 'GET') return next(); var path = req.path.split('/')[1]; - if (/(auth|login|logout|signup)$/.test(path)) return next(); + if (/(auth|login|logout|signup)$/i.test(path)) return next(); req.session.returnTo = req.path; next(); }); @@ -188,7 +188,7 @@ app.get('/auth/venmo/callback', passport.authorize('venmo', { failureRedirect: ' */ app.listen(app.get('port'), function() { - console.log("✔ Express server listening on port %d in %s mode", app.get('port'), app.settings.env); + console.log("✔ Express server listening on port %d in %s mode", app.get('port'), app.get('env')); }); module.exports = app;