Skip to content

Commit

Permalink
Resolve #1456
Browse files Browse the repository at this point in the history
  • Loading branch information
the-djmaze committed Feb 27, 2024
1 parent 68ed7ca commit 719b21a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function run(IOutput $output) {
if ('12345' == $sPassword || !$sPassword) {
$output->info('Generate admin password');
$sPassword = \substr(\base64_encode(\random_bytes(16)), 0, 12);
$oConfig->SetPassword($sPassword);
$oConfig->SetPassword(new \SnappyMail\SensitiveString($sPassword));
\RainLoop\Utils::saveFile(APP_PRIVATE_DATA . 'admin_password.txt', $sPassword . "\n");
$bSave = true;
}
Expand Down

0 comments on commit 719b21a

Please sign in to comment.