mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-10 17:13:38 +08:00
Resolve #174
This commit is contained in:
parent
53f4019f5e
commit
cb848422b2
1 changed files with 8 additions and 6 deletions
|
@ -65,16 +65,18 @@ abstract class Upgrade
|
|||
}
|
||||
$sHash = $oMainAccount->CryptKey();
|
||||
foreach ($aAccounts as $sEmail => $sToken) {
|
||||
if ($oMainAccount->Email() == $sEmail) {
|
||||
continue;
|
||||
}
|
||||
try {
|
||||
$aNewAccounts[$sEmail] = [
|
||||
'account',
|
||||
$sEmail,
|
||||
$sEmail,
|
||||
'',
|
||||
'',
|
||||
'',
|
||||
'',
|
||||
$oMainAccount->Email(),
|
||||
$sEmail, // sLogin
|
||||
'', // sPassword
|
||||
'', // sClientCert
|
||||
'', // sProxyAuthUser
|
||||
'', // sProxyAuthPassword
|
||||
\hash_hmac('sha1', '', $sHash)
|
||||
];
|
||||
if (!$sToken) {
|
||||
|
|
Loading…
Reference in a new issue