jaredhanson/passport-local — pull request #53 by caiguanhao (2013-11-11 07:21:35+00:00)
Title: add options.strategyName to allow multiple passport-local instances to work in one node.js app;

example code:

passport.use(new LocalStrategy({ strategyName: 'local' }, ... );
app.post('/login', passport.authenticate('local', {
successReturnToOrRedirect: '/',
failureRedirect: '/login'
}));

passport.use(new LocalStrategy({ strategyName: 'local-two' }, ... );
app.post('/another/login', passport.authenticate('local-two', {
successReturnToOrRedirect: '/another',
failureRedirect: '/another/login'
}));