Node.js req.flash issues
UgbeGodwinIkpe opened this issue · 0 comments
UgbeGodwinIkpe commented
I'm having issues in returning messages with req.flash()
I'm trying to return a string message to the view instead it's flashing 1.
This is the short code:
return res.render('index', {
error_msg: req.flash('error_msg', 'Not found'),
success_msg: ''
})