SHARE
TWEET

Untitled

a guest Oct 21st, 2010 23 Never
  1. $salt = $this->a1->find_salt($this->user->password);
  2. if ($this->a1->hash_password(arr::get($_POST,'old_password'), $salt) === $this->user->password)
  3. {      
  4.         if ($this->user->values($_POST)->check())
  5.         {
  6.                 $this->user->save();
  7.         }
  8.         else
  9.         {
  10.                 echo Kohana::Debug($this->user->validate()->errors());
  11.         }
  12. }
RAW Paste Data
Top