mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +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;
|
$output = ($plaintext === ENTERPRISE_NOT_HOOK) ? $password : $plaintext;
|
||||||
|
|
||||||
|
// If password already decrypt return same password.
|
||||||
|
$output = (empty($plaintext) === true) ? $password : $plaintext;
|
||||||
|
|
||||||
return sprintf(
|
return sprintf(
|
||||||
'%s%s%s',
|
'%s%s%s',
|
||||||
$wrappedBy,
|
$wrappedBy,
|
||||||
|
@ -1234,7 +1234,7 @@ if (has_metaconsole() === true
|
|||||||
[
|
[
|
||||||
'dbhost' => $config['replication_dbhost'],
|
'dbhost' => $config['replication_dbhost'],
|
||||||
'dbuser' => $config['replication_dbuser'],
|
'dbuser' => $config['replication_dbuser'],
|
||||||
'dbpass' => $config['replication_dbpass'],
|
'dbpass' => io_output_password($config['replication_dbpass']),
|
||||||
'dbname' => $config['replication_dbname'],
|
'dbname' => $config['replication_dbname'],
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user