|
@@ -1,7 +1,5 @@
|
|
|
import mongoose from 'mongoose';
|
|
import mongoose from 'mongoose';
|
|
|
|
|
|
|
|
-import csrf from 'csurf';
|
|
|
|
|
-
|
|
|
|
|
// import { i18n, localePath } from '~/next-i18next.config';
|
|
// import { i18n, localePath } from '~/next-i18next.config';
|
|
|
|
|
|
|
|
module.exports = function(crowi, app) {
|
|
module.exports = function(crowi, app) {
|
|
@@ -121,9 +119,6 @@ module.exports = function(crowi, app) {
|
|
|
sessionMiddleware(req, res, next);
|
|
sessionMiddleware(req, res, next);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- // csurf should be initialized after express-session
|
|
|
|
|
- app.use(csrf({ cookie: false }));
|
|
|
|
|
-
|
|
|
|
|
// passport
|
|
// passport
|
|
|
debug('initialize Passport');
|
|
debug('initialize Passport');
|
|
|
app.use(passport.initialize());
|
|
app.use(passport.initialize());
|