summaryrefslogtreecommitdiff
path: root/src/node/padaccess.js
diff options
context:
space:
mode:
authorJohn McLear <john@mclear.co.uk>2015-05-11 15:10:45 +0100
committerJohn McLear <john@mclear.co.uk>2015-05-11 15:10:45 +0100
commit9e9207d8b6091375017aba122eb8c3db0fb10e8a (patch)
tree3880d4db22d43cc2dd4115f6f0d9504fc94ebf15 /src/node/padaccess.js
parent3b91b46baa699dd50ba993b1fd7ffc33ec741abc (diff)
parent5a7750781b0a1848477675a90d1c2be4596ffd2e (diff)
downloadetherpad-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.js4
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;