From 15554af027b88aa9e47673e9d42ea368d4bd70b2 Mon Sep 17 00:00:00 2001 From: djmaze Date: Mon, 12 Apr 2021 19:46:07 +0200 Subject: [PATCH] remove unused ChangePassword trait actions --- .../RainLoop/Actions/ChangePassword.php | 48 ------------------- 1 file changed, 48 deletions(-) delete mode 100644 snappymail/v/0.0.0/app/libraries/RainLoop/Actions/ChangePassword.php 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); - } - -}