MosparoCaptchaValidator

class MosparoCaptchaValidator
Fully qualified name
\Denkwerk\MosparoForm\Validation\Validator\MosparoCaptchaValidator

Validator class that integrates mosparo verification into TYPO3 Extbase and Form Framework forms.

Validates form submissions by sending normalized data to a mosparo server using the configured project credentials.

Supported options:

option string selectedProject

The mosparo project configuration key to be used.

option string requiredFields

Comma-separated list of field names that must be verified.

option string verifiableFields

Comma-separated list of additional field names that should be checked.

option Denkwerk\MosparoForm\Domain\Model\Form\MosparoFormDefinitionInterface formDefinition

Used to extract and normalize form structure.

__construct ( FormNormalizerManager $formNormalizerManager)
param FormNormalizerManager $formNormalizerManager

The form normalizer manager service.

isValid ( mixed $value)

Validates the submitted form data using mosparo.

  • Normalizes submitted form data via the registered normalizer.
  • Sends verification request to mosparo.
  • Checks that required and verifiable fields are included in the result.
  • Adds validation errors if verification fails or fields are missing.
param mixed $value

Not used; required by interface.

Returns

void