Bugfix: password should be json encoded

This commit is contained in:
djmaze 2021-11-10 16:47:32 +01:00
parent 7565b0770e
commit 7ea4365ccb

View file

@ -32,7 +32,7 @@ trait Contacts
\json_encode(array(
'Enable' => $bEnabled,
'User' => $sUser,
'Password' => $sPassword ? \SnappyMail\Crypt::Encrypt($sPassword, $oAccount->PasswordHash()) : null,
'Password' => $sPassword ? \SnappyMail\Crypt::EncryptToJSON($sPassword, $oAccount->PasswordHash()) : null,
'Url' => $sUrl
))
);