Changed Views to accept CSRF token

This commit is contained in:
Brian Ridings
2014-02-03 13:08:34 -05:00
parent f9ec861151
commit c99c8fe1f8
5 changed files with 7 additions and 7 deletions

2
app.js
View File

@@ -79,7 +79,7 @@ app.use(passport.initialize());
app.use(passport.session());
app.use(function(req, res, next) {
res.locals.user = req.user;
res.locals.token = req.csrfToken();
res.locals.token = req.csrfToken();
next();
});
app.use(flash());