diff options
| author | HumairAK <humair88@hotmail.com> | 2016-07-25 08:51:37 +0000 |
|---|---|---|
| committer | HumairAK <humair88@hotmail.com> | 2016-07-25 08:51:37 +0000 |
| commit | 16b2dab8c2a384ccb95fca048414f33daf3925a8 (patch) | |
| tree | 0bb68d1316265431db26bf9ee7d5a0689eb737f7 /routes/index.js | |
| parent | 1c8e4f255782d756700431a33a8990f514eca698 (diff) | |
added warning message for adding solution while not logged in
Diffstat (limited to 'routes/index.js')
| -rw-r--r-- | routes/index.js | 1 |
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; }); }); |
