mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-06-29 07:16:07 +00:00
Resolve #1561
This commit is contained in:
@@ -87,9 +87,9 @@ trait Accounts
|
||||
if ($bNew || \strlen($oPassword)) {
|
||||
$oNewAccount = $this->LoginProcess($sEmail, $oPassword, false);
|
||||
$sEmail = $oNewAccount->Email();
|
||||
$aAccounts[$sEmail] = $oNewAccount->asTokenArray($oMainAccount);
|
||||
$aAccount = $oNewAccount->asTokenArray($oMainAccount);
|
||||
} else {
|
||||
$aAccounts[$sEmail] = \RainLoop\Model\AdditionalAccount::convertArray($aAccounts[$sEmail]);
|
||||
$aAccount = \RainLoop\Model\AdditionalAccount::convertArray($aAccounts[$sEmail]);
|
||||
}
|
||||
|
||||
if ($bNew) {
|
||||
@@ -100,6 +100,8 @@ trait Accounts
|
||||
throw new ClientException(Notifications::AccountDoesNotExist);
|
||||
}
|
||||
|
||||
$aAccounts[$sEmail] = $aAccount;
|
||||
|
||||
if ($aAccounts[$sEmail]) {
|
||||
$aAccounts[$sEmail]['name'] = \trim($this->GetActionParam('name', ''));
|
||||
$this->SetAccounts($oMainAccount, $aAccounts);
|
||||
|
||||
Reference in New Issue
Block a user