Changed successful login message to "success" flash instead of "info"
This commit is contained in:
@ -42,7 +42,7 @@ exports.postLogin = function(req, res, next) {
|
|||||||
|
|
||||||
req.logIn(user, function(err) {
|
req.logIn(user, function(err) {
|
||||||
if (err) return next(err);
|
if (err) return next(err);
|
||||||
req.flash('info', { msg: 'Success! You are logged in.' });
|
req.flash('success', { msg: 'Success! You are logged in.' });
|
||||||
return res.redirect('/');
|
return res.redirect('/');
|
||||||
});
|
});
|
||||||
})(req, res, next);
|
})(req, res, next);
|
||||||
|
Reference in New Issue
Block a user