, (, "pw" ), Auth . , , password. beforeFilter() .
. , , , , CakePHP.
$this->User->set($this->data);
if ($this->User->validates()) {
$password_hash = $this->Auth->password($this->data['User']['pw'];
$this->data['User']['password'] = $password_hash;
}