mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-12-26 09:03:48 +08:00
Change for #1420
This commit is contained in:
parent
19946fc551
commit
d2c59d2e1c
1 changed files with 3 additions and 4 deletions
|
@ -4,8 +4,8 @@ class NextcloudPlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||||
{
|
{
|
||||||
const
|
const
|
||||||
NAME = 'Nextcloud',
|
NAME = 'Nextcloud',
|
||||||
VERSION = '2.29',
|
VERSION = '2.30',
|
||||||
RELEASE = '2024-01-12',
|
RELEASE = '2024-02-05',
|
||||||
CATEGORY = 'Integrations',
|
CATEGORY = 'Integrations',
|
||||||
DESCRIPTION = 'Integrate with Nextcloud v20+',
|
DESCRIPTION = 'Integrate with Nextcloud v20+',
|
||||||
REQUIRED = '2.27.0';
|
REQUIRED = '2.27.0';
|
||||||
|
@ -217,8 +217,7 @@ class NextcloudPlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||||
if ($sCustomEmail) {
|
if ($sCustomEmail) {
|
||||||
$sEmail = $sCustomEmail;
|
$sEmail = $sCustomEmail;
|
||||||
}
|
}
|
||||||
|
if ($this->Config()->Get('plugin', 'oidc', false)) {
|
||||||
if (!$sEmail && $this->Config()->Get('plugin', 'oidc', false)) {
|
|
||||||
if (\OC::$server->getSession()->get('is_oidc')) {
|
if (\OC::$server->getSession()->get('is_oidc')) {
|
||||||
$sEmail = "{$sUID}@nextcloud";
|
$sEmail = "{$sUID}@nextcloud";
|
||||||
$aResult['DevPassword'] = \OC::$server->getSession()->get('oidc_access_token');
|
$aResult['DevPassword'] = \OC::$server->getSession()->get('oidc_access_token');
|
||||||
|
|
Loading…
Reference in a new issue