diff options
Diffstat (limited to 'bucky')
| -rw-r--r-- | bucky/app/site.js | 20 | ||||
| -rw-r--r-- | bucky/util/auth.js | 1 |
2 files changed, 10 insertions, 11 deletions
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') |
