From 16b2dab8c2a384ccb95fca048414f33daf3925a8 Mon Sep 17 00:00:00 2001 From: HumairAK Date: Mon, 25 Jul 2016 04:51:37 -0400 Subject: added warning message for adding solution while not logged in --- routes/index.js | 1 + 1 file changed, 1 insertion(+) (limited to 'routes/index.js') diff --git a/routes/index.js b/routes/index.js index 283b196..6218dd1 100644 --- a/routes/index.js +++ b/routes/index.js @@ -201,6 +201,7 @@ router.get('/solutions/:exam_id/:q_num', function (req, res) { soln.commentCount = soln.comments.length; }); res.render('user_solutions', {query: solutions, examID: examID, qID: qID, csrfToken: req.csrfToken()}); + req.session.messages = null; }); }); -- cgit v1.2.3