Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node.js req.flash issues #52

Open
UgbeGodwinIkpe opened this issue May 18, 2021 · 0 comments
Open

Node.js req.flash issues #52

UgbeGodwinIkpe opened this issue May 18, 2021 · 0 comments

Comments

@UgbeGodwinIkpe
Copy link

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: ''
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant