saintedlama/passport-local-mongoose — pull request #2 by uniring (2013-01-31 19:26:06+00:00)
Title: Fix use of usernameField and usernamePassword

Fixes Passport not getting the specified usernameField in the plugin. This implies a change in how it's used with passport.

Before it was used like this:
```javascript
passport.use(new LocalStrategy(User.authenticate()));
```

Now it's used like this:
```javascript
passport.use(User.authenticate());
```

It's simplier and I don't think it's useful getting that object out of the plugin. The only 'problem' is the require added to the plugin, but well, this plugin also require passport to be present so it's affordable.