Serialize / deserialize with multiple LocalStrategy PassportJs / ExpressJs
问题 I am starting with PassportJs/ExpressJs application for authentication i have two different model for User and Admin Here is passport.js code passport.use('admin', new LocalStrategy({ usernameField: 'email', passwordField: 'password' }, function(email, password, done) { var adminflag = 'admin'; console.log('---------------------in admin') db.adminUser.find({ where: { email: email }}).success(function(user) { if (!user) { done(null, false, { message: 'Unknown user' }); } else if (!user