public function changeUserPassword(User $user, $password) { $user->hash = $this->hasher->hashPassword($password); return $user->save(); }