From a736f3697d369d81aebc596f32f1e0ed59fd53e3 Mon Sep 17 00:00:00 2001 From: djmaze Date: Wed, 1 Dec 2021 23:51:41 +0100 Subject: [PATCH] Bugfix: account switching failed --- .../app/libraries/RainLoop/Model/AdditionalAccount.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/snappymail/v/0.0.0/app/libraries/RainLoop/Model/AdditionalAccount.php b/snappymail/v/0.0.0/app/libraries/RainLoop/Model/AdditionalAccount.php index a85a8cd77..78bae1a04 100644 --- a/snappymail/v/0.0.0/app/libraries/RainLoop/Model/AdditionalAccount.php +++ b/snappymail/v/0.0.0/app/libraries/RainLoop/Model/AdditionalAccount.php @@ -17,6 +17,13 @@ class AdditionalAccount extends Account return \md5(parent::Hash() . $this->ParentEmail()); } + public function jsonSerialize() + { + $aData = parent::jsonSerialize(); + $aData[] = ''; // was ParentEmail + return $aData; + } + public function asTokenArray(MainAccount $oMainAccount) : array { $sHash = $oMainAccount->CryptKey();