diff options
| author | HumairAK <humair88@hotmail.com> | 2016-07-24 05:51:18 +0000 |
|---|---|---|
| committer | HumairAK <humair88@hotmail.com> | 2016-07-24 05:51:18 +0000 |
| commit | d50d4e2afd3d72ae9c4a24e41d627f80c32845f7 (patch) | |
| tree | dac52707e8524cdd60809544edd8b45159ce8b09 /routes/index.js | |
| parent | 513312a00975a3fa0848736829e00d46825e853f (diff) | |
minor fixes
Diffstat (limited to 'routes/index.js')
| -rw-r--r-- | routes/index.js | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/routes/index.js b/routes/index.js index 6d5fdac..961a60d 100644 --- a/routes/index.js +++ b/routes/index.js @@ -11,7 +11,7 @@ var bcrypt = require('bcrypt-nodejs'); /* Render/GET homepage. */ router.get('/', function(req, res, next) { - addFirstAdmin(); + //addFirstAdmin(); res.render('index'); req.session.errors = null; req.session.success = null; @@ -75,7 +75,6 @@ router.get('/exams/:id', function(req, res, next) { minExamInfoArray.push(minExamInfo); } } - console.log(minExamInfoArray); res.render('exams', {query: req.params.id, result: minExamInfoArray}); }); }); @@ -137,9 +136,6 @@ router.get('/questions/:exam_id', function (req,res) { }; res.render('questions', {query: qList, examInfo: examInfo}); }); - - - console.log(exam); }); /*dbFile.get_exam_info_by_ID(examID, function (questions) { @@ -193,7 +189,6 @@ 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}); - console.log(solutions); }); }); @@ -204,11 +199,11 @@ router.post('/add_solutions/submit', function (req, res) { /**** Helpers ****/ function addFirstAdmin() { - console.log("Inside addFirstAdmin()"); + //console.log("Inside addFirstAdmin()"); //admin_data = {fname: firstname, lname: lastname, username: username, password: password} var password = 'lamptable'; var hash_pwd = passport_file.encryptPassword(password); - console.log("Admin hashed: " + hash_pwd); + //console.log("Admin hashed: " + hash_pwd); var admin_data = { fname: 'Admin', lname: 'Admin', |
