mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 08:27:03 +03:00
Bugfix: domain "hostname".json shortLogin failed
This commit is contained in:
parent
b44da10e27
commit
3594b344fd
1 changed files with 2 additions and 2 deletions
|
|
@ -161,8 +161,8 @@ if (defined('APP_VERSION'))
|
||||||
$sFile = APP_PRIVATE_DATA.'domains/'.$sName.'.json';
|
$sFile = APP_PRIVATE_DATA.'domains/'.$sName.'.json';
|
||||||
if (!file_exists($sFile) && !file_exists(APP_PRIVATE_DATA.'domains/'.$sName.'.ini')) {
|
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 = json_decode(file_get_contents(__DIR__ . '/app/domains/default.json'), true);
|
||||||
$config['imapShortLogin'] = true;
|
$config['IMAP']['shortLogin'] = true;
|
||||||
$config['smtpShortLogin'] = true;
|
$config['SMTP']['shortLogin'] = true;
|
||||||
file_put_contents($sFile, json_encode($config, JSON_PRETTY_PRINT));
|
file_put_contents($sFile, json_encode($config, JSON_PRETTY_PRINT));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue