mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-12-29 11:01:34 +08:00
Bugfix: GetActionParam() failed
This commit is contained in:
parent
a889fc262a
commit
103b431780
1 changed files with 6 additions and 6 deletions
|
@ -7,8 +7,8 @@ class TwoFactorAuthPlugin extends \RainLoop\Plugins\AbstractPlugin
|
|||
{
|
||||
const
|
||||
NAME = 'Two Factor Authentication',
|
||||
VERSION = '2.16.1',
|
||||
RELEASE = '2022-09-20',
|
||||
VERSION = '2.16.2',
|
||||
RELEASE = '2023-04-11',
|
||||
REQUIRED = '2.15.2',
|
||||
CATEGORY = 'Login',
|
||||
DESCRIPTION = 'Provides support for TOTP 2FA';
|
||||
|
@ -167,10 +167,10 @@ class TwoFactorAuthPlugin extends \RainLoop\Plugins\AbstractPlugin
|
|||
return $this->jsonResponse(__FUNCTION__, false);
|
||||
}
|
||||
|
||||
$oSettings = $this->Manager()->Actions()->SettingsProvider()->Load($oAccount);
|
||||
if ($this->Manager()->Actions()->HasActionParam('EnableTwoFactor')) {
|
||||
$sValue = $this->GetActionParam('EnableTwoFactor', '');
|
||||
$oSettings->SetConf('EnableTwoFactor', !empty($sValue));
|
||||
$oActions = $this->Manager()->Actions();
|
||||
if ($oActions->HasActionParam('EnableTwoFactor')) {
|
||||
$sValue = $oActions->GetActionParam('EnableTwoFactor', '');
|
||||
$oActions->SettingsProvider()->Load($oAccount)->SetConf('EnableTwoFactor', !empty($sValue));
|
||||
}
|
||||
|
||||
$sEmail = $oAccount->Email();
|
||||
|
|
Loading…
Reference in a new issue