title: Auth($this->auth->login()) return false in cakephp 2.5.6
body: <p>$this->auth->login() always returns false.</p>
  
  <p>I must use model PintiplanAutore model</p>
  
  <p>in my view correctly displays the sql query</p>
  
  <p>SELECT <code>PintiplanAutore</code>.<code>idautor</code>, <code>PintiplanAutore</code>.<code>idfacebook</code>, <code>PintiplanAutore</code>.<code>nombre</code>, <code>PintiplanAutore</code>.<code>correo</code>, <code>PintiplanAutore</code>.<code>password</code>, <code>PintiplanAutore</code>.<code>token</code>, <code>PintiplanAutore</code>.<code>imagen</code>, <code>PintiplanAutore</code>.<code>rol</code> FROM <code>pintiplan</code>.<code>pintiplan_autores</code> AS <code>PintiplanAutore</code> WHERE <code>PintiplanAutore</code>.<code>correo</code> = 'aa@aa.com' LIMIT 1</p>
  
  <pre><code>&lt;?php 
      echo $this-&gt;Form-&gt;create('PintiplanAutore',array('action'=&gt;'login'));
      echo $this-&gt;Form-&gt;input('correo');
      echo $this-&gt;Form-&gt;input('password');
      echo $this-&gt;Form-&gt;end('Login');
  
  ?&gt;
  &lt;?php echo $this-&gt;Session-&gt;flash('auth'); ?&gt;
  &lt;?php echo $this-&gt;element('sql_dump'); ?&gt;
  </code></pre>
  
  <p>appController.php</p>
  
  <pre><code>&lt;?php App::uses('Controller', 'Controller');
  class AppController extends Controller {
  public $components=array(
  'Session',
  'Auth' =&gt; array(
  
  
          'authenticate'=&gt;array(
              'Form'=&gt;array(
                  'userModel'=&gt;'PintiplanAutore',
                  'fields' =&gt; array(
                      'username' =&gt; 'correo',
                      'passwordHasher' =&gt; 'Blowfish'
                      )
                  )
              )
  
          )
  );
  
  
  public function beforeFilter(){
      $this-&gt;Auth-&gt;allow('index','verSitio','sitiosPublicos','verSitiosPlan','planesPublicos');
      $this-&gt;Auth-&gt;loginAction = array('controller' =&gt; 'PintiplanAutores','action'=&gt;'login');
      $this-&gt;Auth-&gt;loginRedirect = array('controller' =&gt; 'Nosotros', 'action' =&gt; 'index');
  }
  </code></pre>
  
  <p>}</p>
  
  <p>PintiplanAutoresController.php</p>
  
  <pre><code>&lt;?php
     App::uses('AppController', 'Controller');
     class PintiplanAutoresController extends AppController {
        public $components = array('Paginator', 'Session');
        public function beforeFilter() {
          parent::beforeFilter();
          // Allow users to register and logout.
          $this-&gt;Auth-&gt;allow('add','logout','login');
      }
  
  public function add() {
      if ($this-&gt;request-&gt;is('post')) {
          $this-&gt;PintiplanAutore-&gt;create();
          if ($this-&gt;PintiplanAutore-&gt;save($this-&gt;request-&gt;data)) {
              $this-&gt;Session-&gt;setFlash(__('The pintiplan autore has been saved.'));
              return $this-&gt;redirect(array('action' =&gt; 'index'));
          } else {
              $this-&gt;Session-&gt;setFlash(__('The pintiplan autore could not be saved. Please, try again.'));
          }
      }
  }
  public function login(){
  
          if ($this-&gt;request-&gt;is('post')){
              //echo debug($this-&gt;request-&gt;data['PintiplanAutore']['password']);
              debug($this-&gt;Auth-&gt;login()); die();
  
  
          if ($this-&gt;Auth-&gt;login()) {
              return $this-&gt;redirect(array('controller' =&gt; 'Nosotros', 'action' =&gt; 'index'));
              //return $this-&gt;redirect($this-&gt;Auth-&gt;redirectUrl());
          }
  
          $this-&gt;Session-&gt;setFlash(__('Invalid username or password, try again'));
  
          }
      }
   ?&gt;
  </code></pre>
  
  <p>Model PintiplanAutore:</p>
  
  <pre><code>&lt;?php
     App::uses('AppModel', 'Model');
     App::uses('BlowfishPasswordHasher', 'Controller/Component/Auth');
     class PintiplanAutore extends AppModel {
       public $primaryKey = 'idautor';
         public $validate = array(
         'nombre' =&gt; array(
             'required' =&gt; array(
                 'rule' =&gt; array('notEmpty'),
                 'message' =&gt; 'A username is required'
             )
         ),
          'correo' =&gt; array(
             'required' =&gt; array(
                 'rule' =&gt; array('notEmpty'),
                 'message' =&gt; 'A correo is required'
             )
         ),
         'password' =&gt; array(
             'required' =&gt; array(
                 'rule' =&gt; array('notEmpty'),
                 'message' =&gt; 'A password is required'
             )
         ),
         'rol' =&gt; array(
             'valid' =&gt; array(
                 'rule' =&gt; array('inList', array('admin', 'author')),
                 'message' =&gt; 'Please enter a valid role',
                 'allowEmpty' =&gt; false
             )
         )
     );
      public function beforeSave($options = array()) {
      if (isset($this-&gt;data[$this-&gt;alias]['password'])) {
          $passwordHasher = new BlowfishPasswordHasher();
          $this-&gt;data[$this-&gt;alias]['password'] = $passwordHasher-&gt;hash(
              $this-&gt;data[$this-&gt;alias]['password']
          );
      }
      return true;
      }
     }
  </code></pre>
  
  <p>put my user with the action add</p>
  
  <p>I hope someone can help me</p>