src/Form/ResetPassword.php
public function has($elementOrFieldset)
    {
        if (parent::has($elementOrFieldset)) {
            return true;
        }

        if ($elementOrFieldset === 'identity' && $this->identityElement) {
            $elementOrFieldset = $this->identityElement->getName();
        } else {
            return false;
        }

        return parent::has($elementOrFieldset);
    }
public function has($elementOrFieldset)
    {
        if (parent::has($elementOrFieldset)) {
            return true;
        }

        if ($elementOrFieldset === 'identity' && $this->identityElement) {
            $elementOrFieldset = $this->identityElement->getName();
        } else {
            return false;
        }

        return parent::has($elementOrFieldset);
    }
{@inheritDoc}