Skip to content

Commit 24f3225

Browse files
committed
CABPI-278: add void return
1 parent e84aeac commit 24f3225

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/code/Magento/AdminAdobeIms/Plugin/DisableAdminLoginAuthPlugin.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,12 @@ public function aroundLogin(Auth $subject, callable $proceed, $username, $passwo
5353
{
5454
if ($this->imsConfig->enabled() === false) {
5555
$proceed($username, $password);
56+
return;
5657
}
5758
/** @var \Magento\Framework\Controller\Result\Redirect $resultRedirect */
5859
$resultRedirect = $this->redirectFactory->create();
5960
$this->messageManager->addErrorMessage(__('Please sign in with Adobe ID'));
6061
$resultRedirect->setPath('admin');
62+
return;
6163
}
6264
}

0 commit comments

Comments
 (0)