sábado, 23 de janeiro de 2016

Error: Class 'App\Model\Entity\DefaultPasswordHasher' not found


Hi!

use Cake\Auth\DefaultPasswordHasher; <--------------- Maybe you forgot to add this.

protected function _setPassword($value)
{
$hasher = new DefaultPasswordHasher();
return $hasher->hash($value);
}

Good Luck!

Nenhum comentário:

Postar um comentário