Moved the change-password plugin language strings

This commit is contained in:
djmaze 2021-03-01 12:42:34 +01:00
parent 820994e69e
commit bba0ac150a
16 changed files with 87 additions and 80 deletions

View file

@ -58,6 +58,9 @@ class ChangePasswordPlugin extends \RainLoop\Plugins\AbstractPlugin
throw new ClientException(static::NewPasswordWeak, null, $oActions->StaticI18N('NOTIFICATIONS/NEW_PASSWORD_WEAK'));
}
/*
require __DIR__ . '/drivers/pdo.php';
$this->oDriver = new \ChangePasswordDriverPDO;
if (!$this->oDriver->ChangePassword($oAccount, $sPrevPassword, $sNewPassword)) {
throw new ClientException(static::CouldNotSaveNewPassword);
}