I have a very strange problem, i have created a simple form to add user into db.
The code works very well, the users are correctly saved into db.
But...
I have a problem using the validation, this is an extract of my validate array regarding the password field:
public $validate = array(
...
'password' => array(
'rule' => array('minLength', 4),
'required' => true,
'message' => "La password deve essere lunga almeno 4 caratteri"
)
);
The minLength rule works correctly, but if i try to show the messages doing:
debug($this->User->validationErrors);
in my controller. I see this output:
array(
'password' => '*****'
)
why "*" ??
I would like to get the message I wrote in the $validate
array.
This problem only occurs on the password field.