On 30 Gen, 13:45, grigri <[EMAIL PROTECTED]> wrote:
> var $validate = array(
>   'password' => array(
>     'rule' => 'alphanumeric',
>     'required' => true,
>     'allowEmpty' => false
>   )
> );
>
ok, thanks, my password arrive in controller (and in model validation
also) not blank, beacuse, I think, I use Auth component: password
arrive in hash format.

If usefull for other I implemented this solution:

i wrote a custom validation:

MODEL:
var $validate = array(
                'password' => array(
                'unique' => array('rule' => 'validatePassword')),
                );



function validatePassword($data) {
                $valid = true;
            if ($this->data['Utente']['password'] ==
Security::hash(Configure::read('Security.salt') . "")) {
                $valid = false;
            }
        return $valid;
        }


For cakephp guru: if I wrong tell me.... :)

regards
Reny


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to