mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
#12416 fixed multiples encrypts
This commit is contained in:
parent
1e4c5563d3
commit
616a8d728b
@ -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,
|
||||
|
@ -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'],
|
||||
]
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user