#12416 fixed multiples encrypts

This commit is contained in:
Daniel Cebrian 2023-12-11 17:56:48 +01:00
parent 1e4c5563d3
commit 616a8d728b
2 changed files with 4 additions and 1 deletions

View File

@ -581,6 +581,9 @@ function io_output_password($password, $wrappedBy='')
$output = ($plaintext === ENTERPRISE_NOT_HOOK) ? $password : $plaintext;
// If password already decrypt return same password.
$output = (empty($plaintext) === true) ? $password : $plaintext;
return sprintf(
'%s%s%s',
$wrappedBy,

View File

@ -1234,7 +1234,7 @@ if (has_metaconsole() === true
[
'dbhost' => $config['replication_dbhost'],
'dbuser' => $config['replication_dbuser'],
'dbpass' => $config['replication_dbpass'],
'dbpass' => io_output_password($config['replication_dbpass']),
'dbname' => $config['replication_dbname'],
]
);