From 339302eab567e7b175690992f82d422cd2cff341 Mon Sep 17 00:00:00 2001 From: neoteknic Date: Tue, 1 Mar 2022 19:06:33 +0100 Subject: [PATCH] Support ACL Quick support for ACL, use username and password in config instead of auth --- includes/common.inc.php | 5 +++++ 1 file changed, 5 insertions(+) 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) {