From 2c30189fea0c80d053ab7ad02a0a90bc1cf082b3 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Tue, 20 Sep 2022 08:59:38 +0200 Subject: [PATCH] Resolve #526 --- plugins/change-password/index.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/change-password/index.php b/plugins/change-password/index.php index 3a5595604..5aa2567ea 100644 --- a/plugins/change-password/index.php +++ b/plugins/change-password/index.php @@ -6,8 +6,8 @@ class ChangePasswordPlugin extends \RainLoop\Plugins\AbstractPlugin { const NAME = 'Change Password', - VERSION = '2.16.1', - RELEASE = '2022-05-20', + VERSION = '2.16.2', + RELEASE = '2022-09-20', REQUIRED = '2.12.0', CATEGORY = 'Security', DESCRIPTION = 'Extension to allow users to change their passwords'; @@ -195,7 +195,9 @@ class ChangePasswordPlugin extends \RainLoop\Plugins\AbstractPlugin } $oAccount->SetPassword($sNewPassword); - $oActions->SetAuthToken($oAccount); + if ($oAccount instanceof \RainLoop\Model\MainAccount) { + $oActions->SetAuthToken($oAccount); + } return $this->jsonResponse(__FUNCTION__, $oActions->AppData(false)); }