mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 23:46:14 -04:00
Use the cookie parser middleware
This commit is contained in:
parent
e1406b826b
commit
5a7750781b
2 changed files with 4 additions and 5 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue