mirror of
https://github.com/wassname/talk.git
synced 2026-07-01 07:28:29 +08:00
This was not needed.
This commit is contained in:
@@ -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
|
||||
//==============================================================================
|
||||
|
||||
Reference in New Issue
Block a user