title: Getting POST data in Magento observer
body: <p>So, I'm struggling with this, I've got an observer set up to trigger whenever customer/account/login is hit. Firebug clearly shows that I'm POSTing data to this URL and I'm not able to read said POST data in my observer method.</p>
  
  <p>Observer method:</p>
  
  <pre><code>public function checkCustomerLogin($observer) {
      Mage::log("event observed");
      $controller = $observer-&gt;getControllerAction();
      Mage::log(print_r($controller-&gt;getRequest()-&gt;getPost(), true));
      return $this;
  }
  </code></pre>
  
  <p>Example log result:</p>
  
  <pre><code>2014-03-11T11:46:38+00:00 DEBUG (7): event observed
  2014-03-11T11:46:38+00:00 DEBUG (7): Array
  (
  )
  </code></pre>
  
  <p>My observer is configured to trigger on <code>controller_action_predispatch_customer_account_login</code>. Clearly I'm doing something wrong here seeing as how I just can't get my POST data (I've tried a few other desperate approaches but from what I can tell this is how you're "supposed" to get a controller and the POST data in an observer method).</p>