Questions tagged [connect-flash]

Express middleware for storing messages in the session. Connect-flash was part of Express until Express 3. connect-flash

107 questions
0
votes
1 answer

Condition for req.flash inside Jade template (Sails)

Inside my sails.js application, I am passing flash messages inside my Jade templates. I want to display these messages inside a
html5 tag, but I don't want this tag to be present if there is no flash message. Here is my Jade code : - var…
Creasixtine
  • 740
  • 3
  • 11
  • 33
-1
votes
1 answer

req.flash not working with the res.redirect

I am somewhat new to the node and express world so please forgive any of my nobe mistakes, I have a couple of methods that are returning me 500 after I use something like this. req.flash('success', 'your password has been successfully…
Hassaan
  • 339
  • 1
  • 8
  • 20
1 2 3 4 5 6 7
8