fixed all POST routes to use new csrf middleware

This commit is contained in:
Julian Lam
2014-09-17 16:07:26 -04:00
parent 4f6b3055ff
commit a061079995
10 changed files with 30 additions and 22 deletions

View File

@@ -336,6 +336,8 @@ accountsController.accountEdit = function(req, res, next) {
return next(err);
}
userData.csrf = req.csrfToken();
res.render('account/edit', userData);
});
};