Example #1
0
 public function values($values)
 {
     if (isset($values['password']) && $values['password'] === false) {
         // use the current salted and crpted password to pass the validation
         unset($values['password']);
         $values['password2'] = $this->password;
     }
     if ($this->email != $values['email']) {
         $this->new_email = true;
     }
     return parent::values($values);
 }