mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-09-07 21:54:35 +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
|
* @var string
|
||||||
*/
|
*/
|
||||||
private $sAllowedEmails = '';
|
private $sAllowedEmails = '';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var \MailSo\Log\Logger
|
* @var \MailSo\Log\Logger
|
||||||
*/
|
*/
|
||||||
|
@ -34,18 +34,18 @@ class ChangePasswordPoppassdDriver implements \RainLoop\Providers\ChangePassword
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $iHost
|
* @param int $iPort
|
||||||
*
|
*
|
||||||
* @return \ChangePasswordPoppassdDriver
|
* @return \ChangePasswordPoppassdDriver
|
||||||
*/
|
*/
|
||||||
public function SetPort($iHost)
|
public function SetPort($iPort)
|
||||||
{
|
{
|
||||||
$this->iHost = $iHost;
|
$this->iPort = (int) $iPort;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $aDomains
|
* @param string $sAllowedEmails
|
||||||
*
|
*
|
||||||
* @return \ChangePasswordPoppassdDriver
|
* @return \ChangePasswordPoppassdDriver
|
||||||
*/
|
*/
|
||||||
|
@ -69,7 +69,7 @@ class ChangePasswordPoppassdDriver implements \RainLoop\Providers\ChangePassword
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param \RainLoop\Account $oAccount
|
* @param \RainLoop\Account $oAccount
|
||||||
*
|
*
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
1.0
|
1.1
|
|
@ -23,7 +23,7 @@ class PoppassdChangePasswordPlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||||
|
|
||||||
$oProvider
|
$oProvider
|
||||||
->SetHost($this->Config()->Get('plugin', 'host', ''))
|
->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', ''))))
|
->SetAllowedEmails(\strtolower(\trim($this->Config()->Get('plugin', 'allowed_emails', ''))))
|
||||||
->SetLogger($this->Manager()->Actions()->Logger())
|
->SetLogger($this->Manager()->Actions()->Logger())
|
||||||
;
|
;
|
||||||
|
|
Loading…
Add table
Reference in a new issue