mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-02 05:59:21 +03:00
Deprecate Account->Login() and Account->Password()
This commit is contained in:
parent
6af4ead706
commit
682af34d53
8 changed files with 25 additions and 29 deletions
|
|
@ -64,11 +64,11 @@ class ChangePasswordDriverLDAP
|
|||
'{email}' => $oAccount->Email(),
|
||||
'{email:user}' => \MailSo\Base\Utils::GetAccountNameFromEmail($oAccount->Email()),
|
||||
'{email:domain}' => $sDomain,
|
||||
'{login}' => $oAccount->Login(),
|
||||
'{imap:login}' => $oAccount->Login(),
|
||||
'{login}' => $oAccount->IncLogin(),
|
||||
'{imap:login}' => $oAccount->IncLogin(),
|
||||
'{imap:host}' => $oAccount->Domain()->IncHost(),
|
||||
'{imap:port}' => $oAccount->Domain()->IncPort(),
|
||||
'{gecos}' => \function_exists('posix_getpwnam') ? \posix_getpwnam($oAccount->Login()) : ''
|
||||
'{gecos}' => \function_exists('posix_getpwnam') ? \posix_getpwnam($oAccount->IncLogin()) : ''
|
||||
));
|
||||
|
||||
$oCon = \ldap_connect($this->sLdapUri);
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ class ChangePasswordDriverPDO
|
|||
':newpass' => $encrypt_prefix . \ChangePasswordPlugin::encrypt($encrypt, $sNewPassword),
|
||||
':domain' => \MailSo\Base\Utils::GetDomainFromEmail($sEmail),
|
||||
':username' => \MailSo\Base\Utils::GetAccountNameFromEmail($sEmail),
|
||||
':login_name' => $oAccount->Login()
|
||||
':login_name' => $oAccount->IncLogin()
|
||||
);
|
||||
|
||||
$sql = $this->oConfig->Get('plugin', 'pdo_sql', '');
|
||||
|
|
|
|||
|
|
@ -146,7 +146,7 @@ class ChangePasswordPlugin extends \RainLoop\Plugins\AbstractPlugin
|
|||
}
|
||||
|
||||
$sPrevPassword = $this->jsonParam('PrevPassword');
|
||||
if ($sPrevPassword !== $oAccount->Password()) {
|
||||
if ($sPrevPassword !== $oAccount->IncPassword()) {
|
||||
throw new ClientException(static::CurrentPasswordIncorrect, null, $oActions->StaticI18N('NOTIFICATIONS/CURRENT_PASSWORD_INCORRECT'));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue