Skip to content

Commit

Permalink
Merge 057ed01 into dbe9bb0
Browse files Browse the repository at this point in the history
  • Loading branch information
ifuyivara committed Jul 3, 2014
2 parents dbe9bb0 + 057ed01 commit 58a6a5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/connect-mongostore.js
Expand Up @@ -78,7 +78,7 @@ function getStore(Store) {
if (err) throw new Error('Error connecting to database:\n' + err.message + '\n' + err.stack + '\n')

if (self.options.username && self.options.password) {
db.authenticate(self.options.username, self.options.password, function () {
db.authenticate(self.options.username, self.options.password, {authSource: self.options.authSource || null}, function () {
self.getCollection(cb)
})
} else {
Expand Down

0 comments on commit 58a6a5c

Please sign in to comment.