From 063af295b2e8b9a886ebb24d6a10d8ea5fb49206 Mon Sep 17 00:00:00 2001 From: RainLoop Team Date: Tue, 22 Jul 2014 22:23:04 +0400 Subject: [PATCH] Fix "poppassd-change-password" plugin (Closes #249) --- .../ChangePasswordPoppassdDriver.php | 12 ++++++------ plugins/poppassd-change-password/VERSION | 2 +- plugins/poppassd-change-password/index.php | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/plugins/poppassd-change-password/ChangePasswordPoppassdDriver.php b/plugins/poppassd-change-password/ChangePasswordPoppassdDriver.php index 75e53443f..6f6f6d727 100644 --- a/plugins/poppassd-change-password/ChangePasswordPoppassdDriver.php +++ b/plugins/poppassd-change-password/ChangePasswordPoppassdDriver.php @@ -16,7 +16,7 @@ class ChangePasswordPoppassdDriver implements \RainLoop\Providers\ChangePassword * @var string */ private $sAllowedEmails = ''; - + /** * @var \MailSo\Log\Logger */ @@ -34,18 +34,18 @@ class ChangePasswordPoppassdDriver implements \RainLoop\Providers\ChangePassword } /** - * @param string $iHost + * @param int $iPort * * @return \ChangePasswordPoppassdDriver */ - public function SetPort($iHost) + public function SetPort($iPort) { - $this->iHost = $iHost; + $this->iPort = (int) $iPort; return $this; } /** - * @param string $aDomains + * @param string $sAllowedEmails * * @return \ChangePasswordPoppassdDriver */ @@ -69,7 +69,7 @@ class ChangePasswordPoppassdDriver implements \RainLoop\Providers\ChangePassword return $this; } - + /** * @param \RainLoop\Account $oAccount * diff --git a/plugins/poppassd-change-password/VERSION b/plugins/poppassd-change-password/VERSION index 9f8e9b69a..b123147e2 100644 --- a/plugins/poppassd-change-password/VERSION +++ b/plugins/poppassd-change-password/VERSION @@ -1 +1 @@ -1.0 \ No newline at end of file +1.1 \ No newline at end of file diff --git a/plugins/poppassd-change-password/index.php b/plugins/poppassd-change-password/index.php index b5f2e3d9b..cb90487f3 100644 --- a/plugins/poppassd-change-password/index.php +++ b/plugins/poppassd-change-password/index.php @@ -23,7 +23,7 @@ class PoppassdChangePasswordPlugin extends \RainLoop\Plugins\AbstractPlugin $oProvider ->SetHost($this->Config()->Get('plugin', 'host', '')) - ->SetPort($this->Config()->Get('plugin', 'port', '')) + ->SetPort((int) $this->Config()->Get('plugin', 'port', 106)) ->SetAllowedEmails(\strtolower(\trim($this->Config()->Get('plugin', 'allowed_emails', '')))) ->SetLogger($this->Manager()->Actions()->Logger()) ;