diff --git a/includes/common.inc.php b/includes/common.inc.php index cfa5059..9e7472d 100644 --- a/includes/common.inc.php +++ b/includes/common.inc.php @@ -135,6 +135,11 @@ die('ERROR: Authentication failed ('.$server['host'].':'.$server['port'].')'); } } +if (isset($server['username']) && isset($server['password'])) { + if (!$redis->auth($server['username'],$server['password'])) { + die('ERROR: Authentication failed ('.$server['host'].':'.$server['port'].')'); + } +} if ($server['db'] != 0) {