mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-02-24 23:08:08 +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();
|
$sHash = $oMainAccount->CryptKey();
|
||||||
foreach ($aAccounts as $sEmail => $sToken) {
|
foreach ($aAccounts as $sEmail => $sToken) {
|
||||||
|
if ($oMainAccount->Email() == $sEmail) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
$aNewAccounts[$sEmail] = [
|
$aNewAccounts[$sEmail] = [
|
||||||
'account',
|
'account',
|
||||||
$sEmail,
|
$sEmail,
|
||||||
$sEmail,
|
$sEmail, // sLogin
|
||||||
'',
|
'', // sPassword
|
||||||
'',
|
'', // sClientCert
|
||||||
'',
|
'', // sProxyAuthUser
|
||||||
'',
|
'', // sProxyAuthPassword
|
||||||
$oMainAccount->Email(),
|
|
||||||
\hash_hmac('sha1', '', $sHash)
|
\hash_hmac('sha1', '', $sHash)
|
||||||
];
|
];
|
||||||
if (!$sToken) {
|
if (!$sToken) {
|
||||||
|
|
Loading…
Reference in a new issue