Skip to content

Commit

Permalink
decrypt the chi password
Browse files Browse the repository at this point in the history
  • Loading branch information
jrouzierinverse committed Dec 17, 2024
1 parent 0d7b58b commit 4ea564a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/pf/CHI/db.pm
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ use pf::file_paths qw(
$pf_default_file
$pf_config_file
);
use pf::config::crypt;

our ($DBH, $LAST_CONNECT, $CONFIG);
our $logger = get_logger();
Expand All @@ -46,6 +47,7 @@ sub db_connect {

$logger->debug("(Re)Connecting to MySQL (pid: $$)");
my ($dsn, $user, $pass) = db_data_source_info();
$pass = pf::config::crypt::pf_decrypt($pass);
# make sure we have a database handle
if ($DBH = DBI->connect($dsn, $user, $pass, { RaiseError => 0, PrintError => 0, mysql_auto_reconnect => 1 })) {
$logger->debug("connected");
Expand Down

0 comments on commit 4ea564a

Please sign in to comment.