Comparing version 0.5.0 to 0.5.1
@@ -235,4 +235,4 @@ var qs = require('querystring'); | ||
if (url.username) { | ||
db.authenticate(url.username, url.password, next); | ||
if (options.username) { | ||
db.authenticate(options.username, options.password, next); | ||
} else { | ||
@@ -239,0 +239,0 @@ next(null, true); |
@@ -5,3 +5,3 @@ { | ||
"keywords": ["mongo", "db", "mongodb"], | ||
"version":"0.5.0", | ||
"version":"0.5.1", | ||
"repository": "git://github.com/gett/mongojs.git", | ||
@@ -8,0 +8,0 @@ "author": "Ge.tt <hello@ge.tt>", |
15142