title: Auth Component, Controller other than Users
body: <p>I don't have a User table. I got a Customer table. It seems like Cakephp Auth doesn't recognise any other table beside User. Is there any way to walk around this error?</p>
  
  <p>If I tried using <code>$this-&gt;Auth-&gt;User('role')</code> - it works perfectly fine. But all my auth credentials is under the Customer table. please help.</p>
  
  <p>I got this error below </p>
  
  <pre><code>Fatal error: Call to undefined method AuthComponent::Customer() in
  /Applications/MAMP/htdocs/development03/app/app_controller.php on line 56
  </code></pre>
  
  <p>The code:</p>
  
  <pre><code>function beforeFilter() {
      $this-&gt;set('admin', $this-&gt;_isAdmin());
  }
  
  function _isAdmin() {
      $admin = FALSE;
      if ($this-&gt;Auth-&gt;Customer('role') == 'admin') {
          $admin = TRUE;
      }
      return $admin;  
  }
  </code></pre>