aboutsummaryrefslogtreecommitdiff
path: root/routes/index.js
diff options
context:
space:
mode:
authorHumairAK <humair88@hotmail.com>2016-07-25 08:51:37 +0000
committerHumairAK <humair88@hotmail.com>2016-07-25 08:51:37 +0000
commit16b2dab8c2a384ccb95fca048414f33daf3925a8 (patch)
tree0bb68d1316265431db26bf9ee7d5a0689eb737f7 /routes/index.js
parent1c8e4f255782d756700431a33a8990f514eca698 (diff)
added warning message for adding solution while not logged in
Diffstat (limited to 'routes/index.js')
-rw-r--r--routes/index.js1
1 files changed, 1 insertions, 0 deletions
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;
});
});