diff --git a/controllers/forms/globalactions.js b/controllers/forms/globalactions.js index 8ed79692..c177a824 100644 --- a/controllers/forms/globalactions.js +++ b/controllers/forms/globalactions.js @@ -74,6 +74,7 @@ module.exports = async (req, res, next) => { //edit post, only allowing one return res.render('editpost', { 'post': res.locals.posts[0], + 'csrf': req.csrfToken(), }); }