-1
I generated some scaffolding tables from Cakephp2, I have a model called account
and created a Setter and getter:
public function setPassword($password)
{
$this->password = Security::encrypt($password);
}
public function getpassword()
{
return Security::encrypt($this->password);
}
Only scaffolding doesn’t use these methods. How do I hash the field both in the insertion and in the view?