Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Oct 21st, 2010  |  syntax: PHP  |  size: 0.30 KB  |  views: 23  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. }