|
@ -93,10 +93,16 @@ app.use(function(req, res, next) { |
|
|
} else { |
|
|
} else { |
|
|
res.locals.userMessageType = "info"; |
|
|
res.locals.userMessageType = "info"; |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
req.session.userMessage = null; |
|
|
req.session.userMessage = null; |
|
|
req.session.userMessageType = null; |
|
|
req.session.userMessageType = null; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (req.session.query) { |
|
|
|
|
|
res.locals.query = req.session.query; |
|
|
|
|
|
|
|
|
|
|
|
req.session.query = null; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// make some var available to all request
|
|
|
// make some var available to all request
|
|
|
// ex: req.cheeseStr = "cheese";
|
|
|
// ex: req.cheeseStr = "cheese";
|
|
|