v1.18.x
barisusakli 10 years ago
parent 8dedea884d
commit f4ea534327

@ -63,7 +63,7 @@
var usernamePassword = ''; var usernamePassword = '';
if (nconf.get('mongo:username') && nconf.get('mongo:password')) { if (nconf.get('mongo:username') && nconf.get('mongo:password')) {
usernamePassword = nconf.get('mongo:username') + ':' + nconf.get('mongo:password') + '@'; usernamePassword = nconf.get('mongo:username') + ':' + encodeURIComponent(nconf.get('mongo:password')) + '@';
} }
// Sensible defaults for Mongo, if not set // Sensible defaults for Mongo, if not set

Loading…
Cancel
Save