Skip to content

Node.js based forum software built for the modern web

added warnings if no pwd setup for db, #936

Baris Soner Usaklic78942b7a486
diff --git a/src/database/mongo.js b/src/database/mongo.js
index a213df0ab7..66b37c8ce0 100644
--- a/src/database/mongo.js
+++ b/src/database/mongo.js
@@ -44,6 +44,7 @@
createIndices();
});
} else {
+ winston.warn('You have no mongo password setup!');
createIndices();
}
diff --git a/src/database/redis.js b/src/database/redis.js
index 0ed1f330a6..47e552455a 100644
--- a/src/database/redis.js
+++ b/src/database/redis.js
@@ -32,6 +32,8 @@
if (nconf.get('redis:password')) {
redisClient.auth(nconf.get('redis:password'));
+ } else {
+ winston.warn('You have no redis password setup!');
}
redisClient.on('error', function (err) {