mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
fixed all POST routes to use new csrf middleware
This commit is contained in:
@@ -336,6 +336,8 @@ accountsController.accountEdit = function(req, res, next) {
|
||||
return next(err);
|
||||
}
|
||||
|
||||
userData.csrf = req.csrfToken();
|
||||
|
||||
res.render('account/edit', userData);
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user