mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 19:49:20 +03:00
Resolve issue #142
This commit is contained in:
parent
01d96153c6
commit
f046fbf5cd
1 changed files with 1 additions and 1 deletions
|
|
@ -1082,7 +1082,7 @@ class Actions
|
|||
$sPassword = $oConfig->Get('security', 'admin_password', '');
|
||||
if (!$sPassword) {
|
||||
$sPassword = \substr(\base64_encode(\random_bytes(16)), 0, 12);
|
||||
\file_put_contents($passfile, $sPassword);
|
||||
\file_put_contents($passfile, $sPassword . "\n");
|
||||
\chmod($passfile, 0600);
|
||||
$oConfig->SetPassword($sPassword);
|
||||
$oConfig->Save();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue