Skip to content

Commit c3bd993

Browse files
Merge pull request #97 from magento-cia/2.4.6-develop-2.4-develop-sync-12202022
Sync of 2.4.6-develop with 2.4-develop
2 parents 54f6e19 + 9ba6bbc commit c3bd993

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

TwoFactorAuth/Observer/ControllerActionPredispatch.php

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
use Magento\TwoFactorAuth\Api\UserConfigRequestManagerInterface;
2323
use Magento\TwoFactorAuth\Controller\Adminhtml\Tfa\Requestconfig;
2424
use Magento\TwoFactorAuth\Model\UserConfig\HtmlAreaTokenVerifier;
25-
use Magento\AdminAdobeIms\Service\ImsConfig;
2625

2726
/**
2827
* Handle redirection to 2FA page if required
@@ -76,11 +75,6 @@ class ControllerActionPredispatch implements ObserverInterface
7675
*/
7776
private $userContext;
7877

79-
/**
80-
* @var ImsConfig
81-
*/
82-
private ImsConfig $adminAdobeImsConfig;
83-
8478
/**
8579
* @param TfaInterface $tfa
8680
* @param TfaSessionInterface $tfaSession
@@ -90,7 +84,6 @@ class ControllerActionPredispatch implements ObserverInterface
9084
* @param UrlInterface $url
9185
* @param AuthorizationInterface $authorization
9286
* @param UserContextInterface $userContext
93-
* @param ImsConfig $adminAdobeImsConfig
9487
*/
9588
public function __construct(
9689
TfaInterface $tfa,
@@ -100,8 +93,7 @@ public function __construct(
10093
ActionFlag $actionFlag,
10194
UrlInterface $url,
10295
AuthorizationInterface $authorization,
103-
UserContextInterface $userContext,
104-
ImsConfig $adminAdobeImsConfig
96+
UserContextInterface $userContext
10597
) {
10698
$this->tfa = $tfa;
10799
$this->tfaSession = $tfaSession;
@@ -111,7 +103,6 @@ public function __construct(
111103
$this->url = $url;
112104
$this->authorization = $authorization;
113105
$this->userContext = $userContext;
114-
$this->adminAdobeImsConfig = $adminAdobeImsConfig;
115106
}
116107

117108
/**
@@ -132,9 +123,6 @@ private function redirect(string $url): void
132123
*/
133124
public function execute(Observer $observer)
134125
{
135-
if ($this->adminAdobeImsConfig->enabled()) {
136-
return;
137-
}
138126
/** @var $controllerAction AbstractAction */
139127
$controllerAction = $observer->getEvent()->getData('controller_action');
140128
$this->action = $controllerAction;

TwoFactorAuth/composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
"magento/module-ui": "*",
1313
"magento/module-user": "*",
1414
"magento/module-integration": "*",
15-
"magento/module-admin-adobe-ims": "*",
1615
"christian-riesen/base32": "^1.3",
1716
"spomky-labs/otphp": "^10.0",
1817
"endroid/qr-code": "^4.3.5",

0 commit comments

Comments
 (0)