mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 12:09:20 +03:00
Resolve #1456
This commit is contained in:
parent
68ed7cafae
commit
719b21a4fb
1 changed files with 1 additions and 1 deletions
|
|
@ -72,7 +72,7 @@ class InstallStep implements IRepairStep
|
|||
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue