mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-12-26 17:16:07 +08:00
Resolve #987
This commit is contained in:
parent
77126d989a
commit
f662841281
1 changed files with 11 additions and 9 deletions
|
@ -4,8 +4,8 @@ class NextcloudPlugin extends \RainLoop\Plugins\AbstractPlugin
|
|||
{
|
||||
const
|
||||
NAME = 'Nextcloud',
|
||||
VERSION = '2.18',
|
||||
RELEASE = '2023-02-20',
|
||||
VERSION = '2.19',
|
||||
RELEASE = '2023-02-22',
|
||||
CATEGORY = 'Integrations',
|
||||
DESCRIPTION = 'Integrate with Nextcloud v20+',
|
||||
REQUIRED = '2.25.1';
|
||||
|
@ -202,13 +202,15 @@ class NextcloudPlugin extends \RainLoop\Plugins\AbstractPlugin
|
|||
}
|
||||
if ($bSave) {
|
||||
$oActions = \RainLoop\Api::Actions();
|
||||
$oAccount = $oActions->getAccountFromToken();
|
||||
$this->setContactsSyncData($oAccount, array(
|
||||
'Mode' => $aResult['ContactsSync']['Mode'],
|
||||
'User' => $aResult['ContactsSync']['User'],
|
||||
'Password' => $aResult['ContactsSync']['Password'],
|
||||
'Url' => $aResult['ContactsSync']['Url']
|
||||
));
|
||||
$oActions->setContactsSyncData(
|
||||
$oActions->getAccountFromToken(),
|
||||
array(
|
||||
'Mode' => $aResult['ContactsSync']['Mode'],
|
||||
'User' => $aResult['ContactsSync']['User'],
|
||||
'Password' => $aResult['ContactsSync']['Password'],
|
||||
'Url' => $aResult['ContactsSync']['Url']
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue