Skip to content

Node.js based forum software built for the modern web

feat: pass req.session into buildReqObject

Julian Lama6fa351b7240
diff --git a/src/api/helpers.js b/src/api/helpers.js
index 23909e655d..b2f9e0e592 100644
--- a/src/api/helpers.js
+++ b/src/api/helpers.js
@@ -27,6 +27,7 @@ exports.buildReqObject = (req, payload) => {
params: req.params,
method: req.method,
body: payload || req.body,
+ session: req.session,
ip: req.ip,
host: host,
protocol: encrypted ? 'https' : 'http',