Hello, I have made a login system with passports, and i was wondering why it isn't working properly. So when i try to log in the first time, everything works, then i logout, and it actually logs out for me. Then i try to log in with a different account, first it finishes all of the code, and uses the user i have given to him, but then for some reason when it gets here: "(req, res, next);" in the login part, it goes to the function findUser again, and looks for the username of the first user. then it logs me in the 1st user instead of the second one. anyone has any idea why? my code: http://plnkr.co/edit/RiFK9bGSch6VQd8aLzL8?p=preview note: the main app.js isn't the full part just the thing thats needed.
-- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/38861e9d-6332-42c8-8985-248ce1a0e344%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
