title: Custom controller in Magento's admin without login?
body: <p>I'm trying to overwrite IndexController of Adminhtml, below is the source:</p>
  
  <pre><code>class T2_AjaxAdmin_Adminhtml_IndexController extends Mage_Adminhtml_IndexController
  {
      /**
       * Administrator ajax login action
       */
      public function ajaxAction()
      {
          $jsonData = array();
  
          $this-&gt;getResponse()-&gt;setHeader('Content-type', 'application/json');
          $this-&gt;getResponse()-&gt;setBody(Mage::helper('core')-&gt;jsonEncode($jsonData));
  
          exit();
      }
  }
  </code></pre>
  
  <p>My config file</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;config&gt;
      &lt;admin&gt;
          &lt;routers&gt;
              &lt;adminhtml&gt;
                  &lt;args&gt;
                      &lt;modules&gt;
                          &lt;T2_AjaxAdmin before="Mage_Adminhtml"&gt;T2_AjaxAdmin_Adminhtml&lt;/T2_AjaxAdmin&gt;
                      &lt;/modules&gt;
                  &lt;/args&gt;
              &lt;/adminhtml&gt;
          &lt;/routers&gt;
      &lt;/admin&gt;
  &lt;/config&gt;
  </code></pre>
  
  <p>I've just found out, any controllers extend from Adminhtml will redirected to login page first.</p>
  
  <p>What I have to do to prevent this?</p>