diff --git a/snappymail/v/0.0.0/app/libraries/RainLoop/Actions/ChangePassword.php b/snappymail/v/0.0.0/app/libraries/RainLoop/Actions/ChangePassword.php deleted file mode 100644 index 9598c1db1..000000000 --- a/snappymail/v/0.0.0/app/libraries/RainLoop/Actions/ChangePassword.php +++ /dev/null @@ -1,48 +0,0 @@ -oChangePasswordProvider) { - $this->oChangePasswordProvider = new \RainLoop\Providers\ChangePassword( - $this, $this->fabrica('change-password'), !!$this->Config()->Get('labs', 'check_new_password_strength') - ); - } - - return $this->oChangePasswordProvider; - } - - public function DoChangePassword() : array - { - $mResult = false; - - if ($oAccount = $this->getAccountFromToken()) { - try - { - $mResult = $this->ChangePasswordProvider()->ChangePassword( - $oAccount, - $this->GetActionParam('PrevPassword', ''), - $this->GetActionParam('NewPassword', '') - ); - } - catch (\Throwable $oException) - { - $this->loginErrorDelay(); - $this->Logger()->Write('Error: Can\'t change password for '.$oAccount->Email().' account.', \MailSo\Log\Enumerations\Type::NOTICE); - - throw $oException; - } - } - - return $this->DefaultResponse(__FUNCTION__, $mResult); - } - -}