Skip to content

Commit

Permalink
Removed authSource parameter from connection string of gridfs
Browse files Browse the repository at this point in the history
  • Loading branch information
silvae86 committed Sep 12, 2018
1 parent 2a3ad6f commit 3ae105e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/kb/gridfs.js
Expand Up @@ -32,7 +32,8 @@ GridFSConnection.prototype.open = function (callback, customBucket)
let url;
if (Config.mongoDBAuth.username && Config.mongoDBAuth.password && Config.mongoDBAuth.password !== "" && Config.mongoDBAuth.username !== "")
{
url = "mongodb://" + Config.mongoDBAuth.username + ":" + Config.mongoDBAuth.password + "@" + Config.mongoDBHost + ":" + Config.mongoDbPort + "/" + self.collectionName + "?authSource=admin";
// + "?authSource=admin";
url = "mongodb://" + Config.mongoDBAuth.username + ":" + Config.mongoDBAuth.password + "@" + Config.mongoDBHost + ":" + Config.mongoDbPort + "/" + self.collectionName;
}
else
{
Expand Down

0 comments on commit 3ae105e

Please sign in to comment.