diff options
| author | nanalelfe <nargiza.nosirova@mail.utoronto.ca> | 2016-08-23 05:52:44 +0000 |
|---|---|---|
| committer | nanalelfe <nargiza.nosirova@mail.utoronto.ca> | 2016-08-23 05:52:44 +0000 |
| commit | 31016bd38e07668236d1e1257e2d40a3fde34fe5 (patch) | |
| tree | 2f93c65c99d438ca086abd7d3883b31622171c44 /routes | |
| parent | c03f38b02b5fb383127284931f0c598e52125030 (diff) | |
Added admin signin
Diffstat (limited to 'routes')
| -rw-r--r-- | routes/admin.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/routes/admin.js b/routes/admin.js index 68bb456..6a628d2 100644 --- a/routes/admin.js +++ b/routes/admin.js @@ -42,6 +42,15 @@ router.get('/', isAdmin, function(req,res){ req.session.messages = null; }); +router.get('/signin', function (req, res, next) { + var msg = req.flash('error'); + res.render('signin_admin', { + csrfToken: req.csrfToken(), + success: req.session.success, + errors: req.session.errors, + flashMsg: msg + }); +}); /** Retrieves infomation from the exam adding form and sends it to the database to add. */ router.post('/add/exam', function(req,res){ |
