Fix "poppassd-change-password" plugin (Closes #249)

This commit is contained in:
RainLoop Team 2014-07-22 22:23:04 +04:00
parent e4333a6f90
commit 063af295b2
3 changed files with 8 additions and 8 deletions

View file

@ -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
*

View file

@ -1 +1 @@
1.0
1.1

View file

@ -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())
;