title: CakePHP - 'AuthComponent' with a different model name (not 'User')
body: <p>I want to use <em><a href="http://api.cakephp.org/class/auth-component" rel="nofollow">AuthComponent</a></em> in CakePHP with a model (and its corresponding table) named Admin ('admins' table in the database). I've used  <strong>$this->Auth->userModel = 'Admin';</strong> as the documenation says in the <strong>BeforeFilter()</strong> function of the <strong>app_controller</strong>, to indicate that I'm not using the deafult model <strong>User</strong>. </p>
  
  <p>However, either I'm doing it in the wrong place or there's something else that needs to be done, because I can't make the authentication to work (the <strong>login</strong> function in my <strong>admins_controller.php</strong>). The rest of functions work well (for example the <strong>add</strong> function).</p>
  
  <p>If I use the name <strong>User</strong> for my model with a <strong>users</strong> table, it works perfectly. How do I fix this problem? </p>