hannesgassert/mojo — comment on commit c804864efa37f4f4dab0e2046045c1d1a159c002
File: src/mojo.coffee line 39
By hannesgassert:

Problem: just tested this with Mongo 2.0, the new version returns an error if you authenticate with empty credentials to an unprotected DB.

So we either have to change the structure (add another function that performs the authentication or callsback directly if there's no credentials in `opts`) or only propagate the error if `authErr && opt.username && opt.password`.

Gna :)