Problem/Motivation

I would like to use Captcha with GraphQL. For this, I tried to use https://github.com/duartegarin/graphql_webform. My Problem is, that I cannot access the challenge generated by this module. I only get these values:

{
"#type": "captcha",
"#captcha_type": "image_captcha/Image",
"#captcha_title": "My custom title.",
"#captcha_description": "My custom description.",
"#id": "captcha",
"plugin": {}
}

How can I access the challenge (image or math)?

Steps to reproduce

Install GraphQL + https://github.com/duartegarin/graphql_webform + this module. `Drupal\webform\Plugin\WebformElement\Captcha` does not expose challenge.

API changes

Expose captcha challenge.

Comments

fidoxe9367 created an issue. See original summary.

fidoxe9367’s picture

avpaderno’s picture

Title: Expose Captcha Challenge via API. » How can I access the challenge (image or math)?
Category: Bug report » Support request
grevil’s picture

Version: 8.x-1.2 » 2.x-dev
anybody’s picture

Status: Active » Closed (outdated)