This was not needed.

This commit is contained in:
gaba
2017-01-04 13:17:16 -03:00
parent 3718efce1e
commit 5f7d48a7f9
-7
View File
@@ -72,13 +72,6 @@ app.use(session(session_opts));
app.use(cookieParser());
app.use((err, req, res, next) => {
if (req.method === 'POST' || req.method === 'PUT' || req.method === 'DELETE') {
res.locals._csrf = req.csrfToken();
}
next();
});
//==============================================================================
// PASSPORT MIDDLEWARE
//==============================================================================