diff --git a/include/constants.php b/include/constants.php index 7a7efa89..42486d09 100644 --- a/include/constants.php +++ b/include/constants.php @@ -1,6 +1,6 @@ connect($newData['REDIS_HOST'], $newData['REDIS_PORT'] ?: 6379); + if (!empty($data['REDIS_PASSWORD'])) { + $redis->auth($data['REDIS_PASSWORD']); + } if (isset($newData['REDIS_DB'])) { if (!ctype_digit($newData['REDIS_DB']) || $newData['REDIS_DB'] < 0 || $newData['REDIS_DB'] > 15) { throw new \InvalidArgumentException("invalid redis database: " . $newData['REDIS_DB']); diff --git a/nexus/Install/install/install.php b/nexus/Install/install/install.php index 253e09da..55e2d53a 100644 --- a/nexus/Install/install/install.php +++ b/nexus/Install/install/install.php @@ -205,7 +205,7 @@ if (!empty($error) || (isset($mysqlInfo) && !$mysqlInfo['match'])) { unset($copy); } ?> -
+
@@ -216,7 +216,7 @@ if (!empty($error) || (isset($mysqlInfo) && !$mysqlInfo['match'])) {
-
+
Welcome to the NexusPHP installer, if you have any questions, clickherefor help.
diff --git a/nexus/Install/update/update.php b/nexus/Install/update/update.php index 8c0ea050..13b70798 100644 --- a/nexus/Install/update/update.php +++ b/nexus/Install/update/update.php @@ -243,7 +243,7 @@ if (!empty($error) || (isset($mysqlInfo) && !$mysqlInfo['match'])) { unset($copy); } ?> -
+
@@ -254,7 +254,7 @@ if (!empty($error) || (isset($mysqlInfo) && !$mysqlInfo['match'])) {
-
+
Welcome to the NexusPHP updater, if you have any questions, clickherefor help.