Allow redis with no password

This commit is contained in:
Girish Ramakrishnan
2019-11-05 10:48:36 -08:00
parent 868103e7e4
commit 64fd6e0dac
2 changed files with 2 additions and 2 deletions

View File

@@ -1568,7 +1568,7 @@ function setupRedis(app, options, callback) {
appdb.getAddonConfigByName(app.id, 'redis', '%REDIS_PASSWORD', function (error, existingPassword) {
if (error && error.reason !== BoxError.NOT_FOUND) return callback(error);
const redisPassword = error ? hat(4 * 48) : existingPassword; // see box#362 for password length
const redisPassword = options.noPassword ? '' : (error ? hat(4 * 48) : existingPassword); // see box#362 for password length
const redisServiceToken = hat(4 * 48);
// Compute redis memory limit based on app's memory limit (this is arbitrary)