Skip to content

Commit 744a532

Browse files
Rizwan KhanRizwan Khan
authored andcommitted
AC-9797: 2FA functionality enhancement
1 parent 5c5ad5b commit 744a532

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

TwoFactorAuth/Controller/Adminhtml/Authy/Authpost.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ class Authpost extends AbstractAction implements HttpPostActionInterface
9191
* @param TfaInterface $tfa
9292
* @param AlertInterface $alert
9393
* @param DataObjectFactory $dataObjectFactory
94-
* @param UserResource|null $userResource
95-
* @param ScopeConfigInterface|null $scopeConfig
94+
* @param UserResource $userResource
95+
* @param ScopeConfigInterface $scopeConfig
9696
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
9797
*/
9898
public function __construct(
@@ -104,8 +104,8 @@ public function __construct(
104104
TfaInterface $tfa,
105105
AlertInterface $alert,
106106
DataObjectFactory $dataObjectFactory,
107-
?UserResource $userResource = null,
108-
?ScopeConfigInterface $scopeConfig = null
107+
UserResource $userResource,
108+
ScopeConfigInterface $scopeConfig
109109
) {
110110
parent::__construct($context);
111111
$this->tfa = $tfa;

TwoFactorAuth/Controller/Adminhtml/Google/Authpost.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
use Magento\Framework\Controller\Result\JsonFactory;
1414
use Magento\Framework\DataObjectFactory;
1515
use Magento\Framework\Exception\NoSuchEntityException;
16-
use Magento\Tests\NamingConvention\true\bool;
1716
use Magento\TwoFactorAuth\Model\AlertInterface;
1817
use Magento\TwoFactorAuth\Api\TfaInterface;
1918
use Magento\TwoFactorAuth\Api\TfaSessionInterface;
@@ -93,8 +92,8 @@ class Authpost extends AbstractAction implements HttpPostActionInterface
9392
* @param TfaInterface $tfa
9493
* @param AlertInterface $alert
9594
* @param DataObjectFactory $dataObjectFactory
96-
* @param UserResource|null $userResource
97-
* @param ScopeConfigInterface|null $scopeConfig
95+
* @param UserResource $userResource
96+
* @param ScopeConfigInterface $scopeConfig
9897
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
9998
*/
10099
public function __construct(
@@ -106,8 +105,8 @@ public function __construct(
106105
TfaInterface $tfa,
107106
AlertInterface $alert,
108107
DataObjectFactory $dataObjectFactory,
109-
?UserResource $userResource = null,
110-
?ScopeConfigInterface $scopeConfig = null
108+
UserResource $userResource,
109+
ScopeConfigInterface $scopeConfig
111110
) {
112111
parent::__construct($context);
113112
$this->tfa = $tfa;

0 commit comments

Comments
 (0)