redis: Do not try to authenticate with non-string password/user

Signed-off-by: Leo R. Lundgren <leo@finalresort.org>
pull/38568/head
Leo R. Lundgren 2 years ago
parent 990775d5a2
commit c52aaa3647
  1. 4
      lib/private/RedisFactory.php

@ -72,8 +72,8 @@ class RedisFactory {
}
$auth = null;
if (isset($config['password']) && $config['password'] !== '') {
if (isset($config['user']) && $config['user'] !== '') {
if (isset($config['password']) && (string)$config['password'] !== '') {
if (isset($config['user']) && (string)$config['user'] !== '') {
$auth = [$config['user'], $config['password']];
} else {
$auth = $config['password'];

Loading…
Cancel
Save