From 2056600a7251ab9b4a312d5a5d7cd74c7c65e925 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Fri, 14 Oct 2022 23:24:14 +0200 Subject: [PATCH] Small code cleanup --- build/plugins.php | 2 ++ plugins/change-password-hmailserver/index.php | 3 ++- snappymail/v/0.0.0/app/libraries/RainLoop/Actions/User.php | 2 -- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/build/plugins.php b/build/plugins.php index 3e6129589..d66079baf 100755 --- a/build/plugins.php +++ b/build/plugins.php @@ -86,3 +86,5 @@ $manifest = str_replace('}]', "}\n]", $manifest); $manifest = str_replace('","', "\",\n\t\t\"", $manifest); $manifest = str_replace('\/', '/', $manifest); file_put_contents(PLUGINS_DEST_DIR . "/packages.json", $manifest); + +exit; diff --git a/plugins/change-password-hmailserver/index.php b/plugins/change-password-hmailserver/index.php index 8bd1daba1..eb8e1cd05 100644 --- a/plugins/change-password-hmailserver/index.php +++ b/plugins/change-password-hmailserver/index.php @@ -14,6 +14,7 @@ class ChangePasswordHMailServerPlugin extends \RainLoop\Plugins\AbstractPlugin public function Supported() : string { - return 'Use Change Password plugin'; + return 'Activate in Change Password plugin' + . (\class_exists('COM') ? '' : '. And you must install PHP COM extension'); } } diff --git a/snappymail/v/0.0.0/app/libraries/RainLoop/Actions/User.php b/snappymail/v/0.0.0/app/libraries/RainLoop/Actions/User.php index ccf498b78..e56ada4a2 100644 --- a/snappymail/v/0.0.0/app/libraries/RainLoop/Actions/User.php +++ b/snappymail/v/0.0.0/app/libraries/RainLoop/Actions/User.php @@ -41,8 +41,6 @@ trait User $sPassword = $this->GetActionParam('Password', ''); $bSignMe = !empty($this->GetActionParam('SignMe', 0)); - $oAccount = null; - $this->Logger()->AddSecret($sPassword); $oAccount = $this->LoginProcess($sEmail, $sPassword, $bSignMe);