function hashPasswords($data, $enforce=false) {
            if($enforce && isset($data['Account']['password'])) {
            if(!empty($data['Account']['password'])) {
                $data['Account']['password'] = Security::hash($data
['Account']['password'], null, true);
            }
        }
        $this->data = $data;
        pr($this->data);
        return $data;
    }
    function beforeSave() {
        $data = $this->data;
        pr($data);
            $this->hashPasswords($data, true);
            return true;
    }

The first pr prints an array with email and password (hashPasswords is
called twice, it should print an unencrypted password, then print an
encrypted password). The second pr does not print anything. How to
solve this problem?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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