Hello,
If had a similar problem using 1.2.It turns out $data['User']
['password'] is hashed when it comes to the USer controller and so has
40 or so characters independent of how many characters there are in
the unhashed version so it is always verified.
Adrian
On Dec 31, 1:40 am, webjay <[EMAI
On Dec 30, 2007 6:40 PM, webjay <[EMAIL PROTECTED]> wrote:
>
>
> _snippet from controller_
> $password = $sanitize->escape($this->data['User']['password']);
> $this->User->id = $this->Session->read('userid');
> $this->User->password = $password;
> $this->User->save(
I get a password from a form and saves it in the database. No problem
there.
My problem is that I want validation to happen. I.e to check that the
username is 6 or more chars.
_snippet from model_
var $validate = array(
'email' => VALID_EMAIL,
'username' =>