mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Fix CSRF deprecated warning
This commit is contained in:
parent
cf9b5d9441
commit
7099091c28
1 changed files with 1 additions and 1 deletions
|
@ -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, {
|
||||
|
|
Loading…
Reference in a new issue