From 34f553940cd5e9fba5ca6062333f42ba741b700a Mon Sep 17 00:00:00 2001 From: nanalelfe Date: Sun, 24 Jul 2016 23:14:34 -0400 Subject: Fixed /send_message error/success message show up. --- app.js | 1 + 1 file changed, 1 insertion(+) (limited to 'app.js') diff --git a/app.js b/app.js index f629d2f..0b7eb57 100644 --- a/app.js +++ b/app.js @@ -57,6 +57,7 @@ app.use(function(req, res, next) { res.locals.login = req.isAuthenticated(); // global variable res.locals.session = req.session; res.locals.user = req.user; + res.locals.messages = req.session.messages; next(); }); -- cgit v1.2.3