Bugfix: domain "hostname".json shortLogin failed

This commit is contained in:
the-djmaze 2022-11-24 14:31:57 +01:00
parent b44da10e27
commit 3594b344fd

View file

@ -161,8 +161,8 @@ if (defined('APP_VERSION'))
$sFile = APP_PRIVATE_DATA.'domains/'.$sName.'.json';
if (!file_exists($sFile) && !file_exists(APP_PRIVATE_DATA.'domains/'.$sName.'.ini')) {
$config = json_decode(file_get_contents(__DIR__ . '/app/domains/default.json'), true);
$config['imapShortLogin'] = true;
$config['smtpShortLogin'] = true;
$config['IMAP']['shortLogin'] = true;
$config['SMTP']['shortLogin'] = true;
file_put_contents($sFile, json_encode($config, JSON_PRETTY_PRINT));
}
}