Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mongodb connection establishment update
Merge in pull request from original repo, cravall#105 Changed mongodb connection establishment to support newer driver and database versions of mongodb. The current authentication method (Db.authenticate) is deprecated (see log files). The new way to establish a connection is to use the MongoClient. I create different connection strings, depending on whether a username is set or not. The way it is implemented only allows authentication against the selected database (i.e. no auth agains admin database when connecting to different db). It should be tested whether the "encodeURIComponent" calls on the passwords are sufficient to prevent the connection uri from breaking on special character input.
- Loading branch information