snollygolly / paw-wars

:smiley_cat: A spiritual successor to DrugWars, but with cats.
http://pawwars.evilmousestudios.com
Other
32 stars 10 forks source link

Unable to connect to MongoDB with authentication method #126

Closed jiaming10 closed 4 years ago

jiaming10 commented 5 years ago

Currently, connect to MongoDB using authentication method (username, password) is not possible.

Suggest to add following keys to config.json: config.site.db.user config.site.db.password

And at helpers/db.js, we can determine if the above keys are set, and use the connection string accordingly.