Problem/Motivation

When triggering the ALTCHA sentinel fallback, the "auto verification" feature is always bypassed.

Steps to reproduce

Enable sentinel fallback and set auto verification to "on form submit".
Configure sentinel server to an unreachable domain so the fallback will get triggered.

Navigate to a form and submit it. Altcha will start the verification process, but will not submit the form after verification completes.

Proposed resolution

Read ALTCHA widget configuration in altcha-fallback.behaviors.js, and apply a 'verified' event listener in case auto verification is enabled. The event listener will submit the parent form of the widget

Issue fork altcha-3611105

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

robindh created an issue. See original summary.

robindh’s picture

Status: Needs work » Needs review

Added the fallback and tested with both floating UI and the default widget

rinus van linden’s picture

Status: Needs review » Reviewed & tested by the community

Tested the current fix, followed to steps to reproduce but fallback was succesfully triggered and logged in the watchdog.

robindh’s picture

Status: Reviewed & tested by the community » Fixed

Thanks, merged into 1.x dev. Will make a new release soon

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • robindh committed e370eab2 on 1.0.x
    fix: #3611105 Sentinel fallback does not respect auto verification
    
    By:...