title: passport local strategy is not getting called
body: <p>Here is my route handler:</p>
  
  <pre><code>exports.login = function(req, res, next) {
      if (!req.body.username || !req.body.password)
          next();
      passport.authenticate('local');
  };
  </code></pre>
  
  <p>I know that this is getting executed when I submit the login form and that <code>req.body.username</code> and <code>req.body.password</code> contain values - express bodyParser is doing its thing (I have set a breakpoint there).</p>
  
  <p>Here is my local strategy:</p>
  
  <pre><code>passport.use(new LocalStrategy(
          function(username, password, done) {
              console.log('local strategy called with: %s', username);
              var User = bsHelper.getModelFromResource('users');
              User.findOne({ where: {
                  email_text: username,
                  password_hash: password
              } })
                  .then(
                  function (user) {
                      if (!user) {
                          return done(null, false, { message: 'Incorrect email.' });
                      }
                      return done(null, user);
                  },
                  function(err) {
                      return done(err);
                  }
              );
          }
      ));
  </code></pre>
  
  <p>The statement at the top of the verify callback is not logged to the console.</p>
  
  <p>I don't know what else to test. I have tried upgrading to the latest version of passport...</p>