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:
@ -42,6 +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.' });
|
||||||
return res.redirect('/');
|
return res.redirect('/');
|
||||||
});
|
});
|
||||||
})(req, res, next);
|
})(req, res, next);
|
||||||
|
@ -5,10 +5,4 @@ block content
|
|||||||
p.lead
|
p.lead
|
||||||
| Use this document as a way to quickly start any new project.
|
| Use this document as a way to quickly start any new project.
|
||||||
br
|
br
|
||||||
| All you get is this text and a mostly barebones HTML document.
|
| All you get is this text and a mostly barebones HTML document.
|
||||||
|
|
||||||
if user
|
|
||||||
.alert.alert-success.animated.flipInX
|
|
||||||
i.fa.fa-check
|
|
||||||
strong Success!
|
|
||||||
| You are logged in.
|
|
Reference in New Issue
Block a user