I started using CakePHP 3 after a time using CakePHP 2 and I am having troubles to create the authentication login.
The new auth function $this->Auth->id
$this->Auth->id
I came out with a solution just by adding use Cake\Auth\DefaultPasswordHasher; and its following override method _setPassword.
use Cake\Auth\DefaultPasswordHasher;
_setPassword
Here is the change:
Model/table.php
hash($password); }