aboutsummaryrefslogtreecommitdiff
path: root/routes/user.js
diff options
context:
space:
mode:
authorHumairAK <humair88@hotmail.com>2016-07-27 00:49:21 +0000
committerHumairAK <humair88@hotmail.com>2016-07-27 00:49:21 +0000
commit7e30cb0b87d8ead0b4746238c533630f252619ef (patch)
treea19851ef823fa4c48aea9d267a1cb3c8adbcac84 /routes/user.js
parent20220f9c3cf0cf8e1efbe850aba4a99f23d9a0cb (diff)
fixed csrf and redirect issues with follow exam
Diffstat (limited to 'routes/user.js')
-rw-r--r--routes/user.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/routes/user.js b/routes/user.js
index 22a30a4..74c5427 100644
--- a/routes/user.js
+++ b/routes/user.js
@@ -350,7 +350,8 @@ router.post('/follow_exam/:examID',function (req, res) {
}else{
var message = "Must be logged in to follow an exam!";
req.session.messages = {error : message};
- res.redirect('/questions/' + examID);
+ res.redirect('/questions/' + examId);
+
}
});