Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
Resolve #1561
Browse files Browse the repository at this point in the history
  • Loading branch information
the-djmaze committed Apr 28, 2024
1 parent f4e81a1 commit 9ec8ac8
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ public function DoAccountSetup(): array
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) {
Expand All @@ -100,6 +100,8 @@ public function DoAccountSetup(): array
throw new ClientException(Notifications::AccountDoesNotExist);
}

$aAccounts[$sEmail] = $aAccount;

if ($aAccounts[$sEmail]) {
$aAccounts[$sEmail]['name'] = \trim($this->GetActionParam('name', ''));
$this->SetAccounts($oMainAccount, $aAccounts);
Expand Down

0 comments on commit 9ec8ac8

Please sign in to comment.