diff --git a/lib/modules/everymodule.js b/lib/modules/everymodule.js index 32ec5bd6..6cfc2ff8 100644 --- a/lib/modules/everymodule.js +++ b/lib/modules/everymodule.js @@ -46,7 +46,8 @@ function EveryModule () { .logoutRedirectPath('/') .userPkey('id'); - this.performRedirect( function(res, location) { + this.performRedirect( function(req, location) { + var res = req.res; res.writeHead(303, { 'Location': location }); res.end(); });