public function isValid($password, $passwordHash, $legacySalt = null, $identity = null)
{
$isValid = call_user_func($this->validationCallback, $password, $passwordHash, $legacySalt);
if ($isValid === true) {
$passwordHash = $this->createHashWhichWillForceRehashInValidator($password);
}
return $this->validator->isValid($password, $passwordHash, $legacySalt, $identity);
}