Skip to content

Commit

Permalink
Fix user update password hashing
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielss89 committed May 11, 2014
1 parent 77ba9dc commit 4f3465a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/ZfcUser/Service/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,8 @@ public function changePassword(array $data)
return false;
}

$user = $this->getFormHydrator()->hydrate(
array('password' => trim($data['newCredential'])),
$user
);
$user->setPassword($this->getFormHydrator()->getCryptoService()->create($data['newCredential']));

$events = $this->getEventManager();

$events->trigger(__FUNCTION__, $this, compact('user'));
Expand Down

0 comments on commit 4f3465a

Please sign in to comment.