mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-12-26 00:51:24 +08:00
Fix "poppassd-change-password" plugin (Closes #249)
This commit is contained in:
parent
e4333a6f90
commit
063af295b2
3 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
*
|
||||
|
|
|
@ -1 +1 @@
|
|||
1.0
|
||||
1.1
|
|
@ -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())
|
||||
;
|
||||
|
|
Loading…
Reference in a new issue