public function resetPassword($code, $password)
{
try {
$user = $this->sentry->findUserByResetPasswordCode($code);
$user->password = $password;
$user->save();
$this->event->fire('users.password.reset', array($user));
return $user;
} catch (SentryUserNotFoundException $e) {
throw new UserNotFoundException($e->getMessage());
}
}