Skip to content

Commit df20ae1

Browse files
committed
Allow backend login without redirect
1 parent 26acabe commit df20ae1

File tree

1 file changed

+0
-6
lines changed
  • app/code/Magento/Backend/Controller/Adminhtml/Auth

1 file changed

+0
-6
lines changed

app/code/Magento/Backend/Controller/Adminhtml/Auth/Login.php

-6
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,6 @@ public function execute()
4848
return $this->getRedirect($this->_backendUrl->getStartupPageUrl());
4949
}
5050

51-
$requestUrl = $this->getRequest()->getUri();
52-
$backendUrl = $this->getUrl('*');
53-
// redirect according to rewrite rule
54-
if ($requestUrl != $backendUrl) {
55-
return $this->getRedirect($backendUrl);
56-
}
5751
return $this->resultPageFactory->create();
5852
}
5953

0 commit comments

Comments
 (0)