mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-05 15:37:03 +03:00
Bugfix: password should be json encoded
This commit is contained in:
parent
7565b0770e
commit
7ea4365ccb
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ trait Contacts
|
||||||
\json_encode(array(
|
\json_encode(array(
|
||||||
'Enable' => $bEnabled,
|
'Enable' => $bEnabled,
|
||||||
'User' => $sUser,
|
'User' => $sUser,
|
||||||
'Password' => $sPassword ? \SnappyMail\Crypt::Encrypt($sPassword, $oAccount->PasswordHash()) : null,
|
'Password' => $sPassword ? \SnappyMail\Crypt::EncryptToJSON($sPassword, $oAccount->PasswordHash()) : null,
|
||||||
'Url' => $sUrl
|
'Url' => $sUrl
|
||||||
))
|
))
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue