We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I set a flash value as: req.flash('error', 'Invalid email or password');
but when i accessing this in appropriate section with console.log, the results are different:
console.log(req.flash('error')); //output: ['Invalid email or password'] console.log(req.flash('error')); // output: []
what is reason? why it is returning different result?
The text was updated successfully, but these errors were encountered:
You can only access your session flash k-v pair once. After the first access, it is destroyed.
Sorry, something went wrong.
No branches or pull requests
I set a flash value as:
req.flash('error', 'Invalid email or password');
but when i accessing this in appropriate section with console.log, the results are different:
console.log(req.flash('error')); //output: ['Invalid email or password']
console.log(req.flash('error')); // output: []
what is reason? why it is returning different result?
The text was updated successfully, but these errors were encountered: