mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-02 22:17:03 +03:00
Added PDO driver to the change-password plugin
This commit is contained in:
parent
0fa0b975ef
commit
93f371e0ff
3 changed files with 221 additions and 22 deletions
37
plugins/change-password/drivers/example.phps
Normal file
37
plugins/change-password/drivers/example.phps
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
class ChangePasswordDriverLDAP
|
||||
{
|
||||
const
|
||||
NAME = 'Example',
|
||||
DESCRIPTION = 'Example driver to change the email account passwords.';
|
||||
|
||||
private
|
||||
$sHostName = '';
|
||||
|
||||
/**
|
||||
* @var \MailSo\Log\Logger
|
||||
*/
|
||||
private $oLogger = null;
|
||||
|
||||
function __construct(\RainLoop\Config\Plugin $oConfig, \MailSo\Log\Logger $oLogger)
|
||||
{
|
||||
$this->oLogger = $oLogger;
|
||||
// $this->sHostName = $oConfig->Get('plugin', 'example_hostname', '');
|
||||
}
|
||||
|
||||
public static function isSupported() : bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function configMapping() : array
|
||||
{
|
||||
return array();
|
||||
}
|
||||
|
||||
public function ChangePassword(\RainLoop\Model\Account $oAccount, string $sPrevPassword, string $sNewPassword) : bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue