From b51e1359346130f2a775780f66ca77e31d674e2a Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 29 May 2018 01:47:54 +0200 Subject: tabz --- bucky/app/site.js | 20 ++++++++++---------- bucky/util/auth.js | 1 - 2 files changed, 10 insertions(+), 11 deletions(-) (limited to 'bucky') diff --git a/bucky/app/site.js b/bucky/app/site.js index c447991..9374281 100644 --- a/bucky/app/site.js +++ b/bucky/app/site.js @@ -47,22 +47,22 @@ site.init = function(){ if (!process.env.SESSIONS_IN_MEMORY) { sessionSettings.store = new MongoStore({ url: 'mongodb://localhost/buckySessionDb' -// type: 'mongodb', -// host: 'localhost', -// port: 27017, -// dbName: 'buckySessionDb', -// collectionName: 'sessions', -// timeout: 10000, + // type: 'mongodb', + // host: 'localhost', + // port: 27017, + // dbName: 'buckySessionDb', + // collectionName: 'sessions', + // timeout: 10000, }) } app.use(session(sessionSettings)) upload.init() // federate.route(app) -// app.use(csurf({ -// cookie: true, -// value: (req) => { req.headers['csrf-token'] } -// })) + // app.use(csurf({ + // cookie: true, + // value: (req) => { req.headers['csrf-token'] } + // })) app.disable('x-powered-by') auth.init() diff --git a/bucky/util/auth.js b/bucky/util/auth.js index 16368cf..d457704 100644 --- a/bucky/util/auth.js +++ b/bucky/util/auth.js @@ -1,4 +1,3 @@ - var passport = require('passport') var LocalStrategy = require('passport-local').Strategy var crypto = require('crypto') -- cgit v1.2.3-70-g09d2