This commit is contained in:
the-djmaze 2022-09-20 08:59:38 +02:00
parent 39faff29e1
commit 2c30189fea

View file

@ -6,8 +6,8 @@ class ChangePasswordPlugin extends \RainLoop\Plugins\AbstractPlugin
{ {
const const
NAME = 'Change Password', NAME = 'Change Password',
VERSION = '2.16.1', VERSION = '2.16.2',
RELEASE = '2022-05-20', RELEASE = '2022-09-20',
REQUIRED = '2.12.0', REQUIRED = '2.12.0',
CATEGORY = 'Security', CATEGORY = 'Security',
DESCRIPTION = 'Extension to allow users to change their passwords'; DESCRIPTION = 'Extension to allow users to change their passwords';
@ -195,7 +195,9 @@ class ChangePasswordPlugin extends \RainLoop\Plugins\AbstractPlugin
} }
$oAccount->SetPassword($sNewPassword); $oAccount->SetPassword($sNewPassword);
$oActions->SetAuthToken($oAccount); if ($oAccount instanceof \RainLoop\Model\MainAccount) {
$oActions->SetAuthToken($oAccount);
}
return $this->jsonResponse(__FUNCTION__, $oActions->AppData(false)); return $this->jsonResponse(__FUNCTION__, $oActions->AppData(false));
} }