title: CakePHP 3.0 Login return every time false
body: <p>I'm making a project in cakePhp 3 and I can't make login. <code>$this-&gt;Auth-&gt;indetify();</code> always returns <code>false</code></p>
  
  <p>Viewing other's similar problem, all advise to make my <code>table.password</code> in database <code>varchar(255)</code>, but this does not help.</p>
  
  <p>Database table:</p>
  
  <pre><code>CREATE TABLE users (
  id BIGINT PRIMARY KEY AUTO_INCREMENT,
  person_id BIGINT NOT NULL,
  username VARCHAR(50),
  password VARCHAR(255),
  role VARCHAR(20),
  active boolean DEFAULT TRUE NOT NULL
  
  );
  </code></pre>
  
  <p>Functions login and logout in UsersControllers</p>
  
  <pre><code>public function login() {
  if ($this-&gt;request-&gt;is('post')) {
      $user = $this-&gt;Auth-&gt;identify();
      if ($user) {
          $this-&gt;Auth-&gt;setUser($user);
  
          return $this-&gt;redirect($this-&gt;Auth-&gt;redirectUrl());
      }
      $this-&gt;Flash-&gt;error(__('User and Password incorrect'));
  }
  public function logout() {
     return $this-&gt;redirect($this-&gt;Auth-&gt;logout());
  }
  
  public function beforeFilter(Event $event)
  {
    parent::beforeFilter($event);
    $this-&gt;Auth-&gt;allow(['index', 'logout', 'add','login']);
  }
  </code></pre>
  
  <p>AppController:</p>
  
  <pre><code> public function initialize()
  {
      parent::initialize();
  
      $this-&gt;loadComponent('RequestHandler');
      $this-&gt;loadComponent('Flash');
  
      $this-&gt;loadComponent('Auth',[
      'loginRedirect' =&gt; [
      'controller' =&gt; 'Users',
      'action' =&gt; 'index'
      ],
      'logoutRedirect' =&gt; [
      'controller' =&gt; 'Users',
      'action' =&gt; 'login'
      ]           
  ]); 
  </code></pre>
  
  <p>and my /Users/login.ctp</p>
  
  <pre><code>&lt;div class="users form"&gt;
  &lt;?= $this-&gt;Flash-&gt;render('auth') ?&gt;
  &lt;?= $this-&gt;Form-&gt;create() ?&gt;
       &lt;fieldset&gt;
          &lt;legend&gt;&lt;?= __('User and Password') ?&gt;&lt;/legend&gt;
          &lt;?= $this-&gt;Form-&gt;input('username') ?&gt;
         &lt;?= $this-&gt;Form-&gt;input('password') ?&gt;
      &lt;/fieldset&gt;
  &lt;?= $this-&gt;Form-&gt;button(__('Login')); ?&gt;
  &lt;?= $this-&gt;Form-&gt;end() ?&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I followed a tutorial and it took me to this apparently was to work = \</p>