Skip to content

Commit d677d53

Browse files
committed
Fixed: Wrong section name for plugin configuration parameters
1 parent 48bacaa commit d677d53

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

src/data/imscp/configs/plugin-imscp-change-password.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
;
44
; RainLoop Webmail plugin (imscp-change-password)
55

6-
[imscp_password_change]
6+
[plugin]
77
pdo_dsn = "mysql:host={DATABASE_HOSTNAME};port={DATABASE_PORT};dbname={DATABASE_NAME}"
88
user = "{DATABASE_USER}"
99
password = "{DATABASE_PASSWORD}"

src/data/imscp/plugins/imscp-change-password/index.php

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,10 @@ public function MainFabrica($sName, &$oProvider)
6161
{
6262
switch ($sName) {
6363
case 'change-password':
64-
$sDsn = \trim($this->Config()->Get(
65-
'imscp_password_change', 'pdo_dsn', ''
66-
));
67-
$sUser = (string)$this->Config()->Get(
68-
'imscp_password_change', 'user', ''
69-
);
64+
$sDsn = \trim($this->Config()->Get('plugin', 'pdo_dsn', ''));
65+
$sUser = (string)$this->Config()->Get('plugin', 'user', '');
7066
$sPassword = (string)$this->Config()->Get(
71-
'imscp_password_change', 'password', ''
67+
'plugin', 'password', ''
7268
);
7369

7470
if (!empty($sDsn)
@@ -83,9 +79,7 @@ public function MainFabrica($sName, &$oProvider)
8379
);
8480
$oProvider->SetConfig($sDsn, $sUser, $sPassword);
8581
$oProvider->SetAllowedEmails(\strtolower(\trim(
86-
$this->Config()->Get(
87-
'imscp_password_change', 'allowed_emails', ''
88-
)
82+
$this->Config()->Get('plugin', 'allowed_emails', '')
8983
)));
9084
}
9185

0 commit comments

Comments
 (0)