Fix CSRF deprecated warning

This commit is contained in:
Fabian Becker 2013-10-22 07:33:30 +00:00
parent cf9b5d9441
commit 7099091c28

View File

@ -111,7 +111,7 @@ function ghostLocals(req, res, next) {
res.locals = res.locals || {};
res.locals.version = packageInfo.version;
res.locals.path = req.path;
res.locals.csrfToken = req.session._csrf;
res.locals.csrfToken = req.csrfToken();
if (res.isAdmin) {
_.extend(res.locals, {