mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-05 15:37:03 +03:00
Resolve #526
This commit is contained in:
parent
39faff29e1
commit
2c30189fea
1 changed files with 5 additions and 3 deletions
|
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue