Update website.js

This commit is contained in:
hellcatz 2017-09-04 15:30:01 -07:00 committed by GitHub
parent 9a4497323b
commit f9cdef7a72
1 changed files with 3 additions and 1 deletions

View File

@ -134,7 +134,9 @@ module.exports = function(logger){
async.waterfall([
function(callback){
var client = redis.createClient(portalConfig.redis.port, portalConfig.redis.host);
client.auth(portalConfig.redis.password);
if (portalConfig.redis.password) {
client.auth(portalConfig.redis.password);
}
client.hgetall('coinVersionBytes', function(err, coinBytes){
if (err){
client.quit();