passport-local
passport-local copied to clipboard
Post requests after authentication not working
Hi,
I've got the latest version of Express.js (3.1) and Node.js (0.10). I've integrated Passport.js with the Local Strategy. Everything seems to work well apart from when I am logged in I cannot do post requests anymore. Nothing happens.
Any idea what I might be doing wrong?
Thanks.
Can you post a short gist that reproduces the issue?
Are you using restler?
We had the same problem but then found that this error occurs if you call next() twice: https://github.com/senchalabs/connect/issues/767#issuecomment-15343104
Here is the issue on restler: https://github.com/danwrong/restler/issues/110 and the fix is here: https://github.com/QuePort/restler/commit/d44d126235d89c4692f254d00ca2b9cf80ef13c5#.