Closed oakley808 closed 9 years ago
Actually, maybe it's the example app.js file line 34.
app.get('/admin', pass.ensureAuthenticated, pass.ensureAdmin(), user_routes.admin);
Maybe should be:
app.get('/admin', pass.ensureAuthenticated, pass.ensureAdmin, user_routes.admin);
?
To reduce the noise of issues filed against examples, I'm moving examples to separate repositories. Please feel free to take ownership of this example by creating a new repo and adding it to the wiki here: https://github.com/jaredhanson/passport-local/wiki/Examples
Hi. The example "express3-mongoose-multiple-files" doesn't run for me on OSX. I get the following error
Maybe app needs to be passed to pass.js for req to be defined? The express3-mongoose example seems to work fine.
(I'm using Express 3 and Node v0.10.26)