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
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
Comment #3
robindh commentedAdded the fallback and tested with both floating UI and the default widget
Comment #4
rinus van linden commentedTested the current fix, followed to steps to reproduce but fallback was succesfully triggered and logged in the watchdog.
Comment #5
robindh commentedThanks, merged into 1.x dev. Will make a new release soon