Bugfix: account switching failed

This commit is contained in:
djmaze 2021-12-01 23:51:41 +01:00
parent c16ab19dd4
commit a736f3697d

View file

@ -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();