I am trying to load a page on whether or not a user's information that was sent via POST has been verified by the database:
app.post('/login', [function(req, res, next){
if (err) {
console.error('error connecting: ' + err.stack);
res.app.locals.error = 1
res.app.locals.ID = req.body.ID
return;
}
})
I then try to access res.app.locals.ID
in the next, but it comes out an undefined
. Any ideas?
via foobar5512
No comments:
Post a Comment