Merge branch 'master' of https://github.com/JahlomP/hackathon-starter into JahlomP-master

* 'master' of https://github.com/JahlomP/hackathon-starter:
  Replaced hardcoded success flash with express-flash
This commit is contained in:
Sahat Yalkabov
2014-02-10 10:58:31 -05:00
2 changed files with 2 additions and 7 deletions

View File

@ -42,6 +42,7 @@ exports.postLogin = function(req, res, next) {
req.logIn(user, function(err) {
if (err) return next(err);
req.flash('info', { msg: 'Success! You are logged in.' });
return res.redirect('/');
});
})(req, res, next);