mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 08:27:03 +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', '');
|
$sPassword = $oConfig->Get('security', 'admin_password', '');
|
||||||
if (!$sPassword) {
|
if (!$sPassword) {
|
||||||
$sPassword = \substr(\base64_encode(\random_bytes(16)), 0, 12);
|
$sPassword = \substr(\base64_encode(\random_bytes(16)), 0, 12);
|
||||||
\file_put_contents($passfile, $sPassword);
|
\file_put_contents($passfile, $sPassword . "\n");
|
||||||
\chmod($passfile, 0600);
|
\chmod($passfile, 0600);
|
||||||
$oConfig->SetPassword($sPassword);
|
$oConfig->SetPassword($sPassword);
|
||||||
$oConfig->Save();
|
$oConfig->Save();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue