kohana 3.1 orm validation on updating user details -


i'm running update_user form through

$user = orm::factory('user', $id)->update_user($this->request->post(), array(   'username',   'password',   'email' )); 

and pre-populating form fields username , email current user, , leaving password blank in-order 'unchanged'

but on submission picking validation messages create_user 'user' model

so i'm getting:

"username taken" "email address taken" "password can't blank" 

does know how suppose round this?

    $user = $this->get_user();      if ( ! $user->loaded())     {         throw new exception_deny;     }      if ($_post)     {         try         {             $user->update_user($_post, array(                 'username',                 'email',                 'password',             ));         }         catch (orm_validation_exception $e)         {             $this->add_errors($e);         }     }      $this->content = view::factory('user/update'); 

works absolutely - gives error when im trying assign existent user's username or password... check you've overrided in orm or model_user classes.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -