mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 00:34:46 +02:00
fix tools
This commit is contained in:
parent
4a05cbb544
commit
1cacbbc08f
@ -499,11 +499,17 @@ sub credential_store_get_key($$$) {
|
|||||||
my ($pa_config, $dbh, $identifier) = @_;
|
my ($pa_config, $dbh, $identifier) = @_;
|
||||||
|
|
||||||
my $sql = 'SELECT * FROM tcredential_store WHERE identifier = ?';
|
my $sql = 'SELECT * FROM tcredential_store WHERE identifier = ?';
|
||||||
my $key = get_db_single_row($dbh, $sql, $identifier);
|
my $key = PandoraFMS::DB::get_db_single_row($dbh, $sql, $identifier);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'username' => pandora_output_password($pa_config, $key->{'username'}),
|
'username' => PandoraFMS::Core::pandora_output_password(
|
||||||
'password' => pandora_output_password($pa_config, $key->{'password'}),
|
$pa_config,
|
||||||
|
$key->{'username'}
|
||||||
|
),
|
||||||
|
'password' => PandoraFMS::Core::pandora_output_password(
|
||||||
|
$pa_config,
|
||||||
|
$key->{'password'}
|
||||||
|
),
|
||||||
'extra_1' => $key->{'extra_1'},
|
'extra_1' => $key->{'extra_1'},
|
||||||
'extra_2' => $key->{'extra_2'},
|
'extra_2' => $key->{'extra_2'},
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user