Closed gregordotjs closed 9 years ago
Reading up on "Flash Messages" here indicates that you need connect-flash when using express 3.x.
whoa, I completely missed this. Of course, now it works fine. I had to add req.flash for render, like this:
res.render('login', { message: req.flash('error') });
thanks a lot!
Always when I try to use failureFlash, I get an "undefined is not a function" error. Otherwise, if I omit the property, it works fine.
Here's the source code:
And here's the error: