diff options
author | John McLear <john@mclear.co.uk> | 2015-05-11 15:10:45 +0100 |
---|---|---|
committer | John McLear <john@mclear.co.uk> | 2015-05-11 15:10:45 +0100 |
commit | 9e9207d8b6091375017aba122eb8c3db0fb10e8a (patch) | |
tree | 3880d4db22d43cc2dd4115f6f0d9504fc94ebf15 /src/node/padaccess.js | |
parent | 3b91b46baa699dd50ba993b1fd7ffc33ec741abc (diff) | |
parent | 5a7750781b0a1848477675a90d1c2be4596ffd2e (diff) | |
download | etherpad-lite-9e9207d8b6091375017aba122eb8c3db0fb10e8a.zip |
Merge pull request #2657 from simong/cookie-parser
Use the cookie parser middleware
Diffstat (limited to 'src/node/padaccess.js')
-rw-r--r-- | src/node/padaccess.js | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/node/padaccess.js b/src/node/padaccess.js index 97333514..1f2e8834 100644 --- a/src/node/padaccess.js +++ b/src/node/padaccess.js @@ -3,10 +3,6 @@ var securityManager = require('./db/SecurityManager'); //checks for padAccess module.exports = function (req, res, callback) { - - // FIXME: Why is this ever undefined?? - if (req.cookies === undefined) req.cookies = {}; - securityManager.checkAccess(req.params.pad, req.cookies.sessionID, req.cookies.token, req.cookies.password, function(err, accessObj) { if(ERR(err, callback)) return; |