Not sure how the test settings keys are supposed to work but I tried using the keys under the testing settings area and that doesn't seem to be overriding the keys that I added via the keys module (since that's a required field). I noticed here there doesn't seem to be a check for the test keys in turnstile_keys() function.

https://git.drupalcode.org/project/turnstile/-/blob/1.1.x/turnstile.modu...

Is that by design? Should the test keys override whatever key is added via keys module? In any event, I created a small patch that adds a check for test keys. If test keys are selected, it will then override whatever key was added via keys module. This can be easily turned off by selecting "disabled (use live site key)" option under the testing settings section.

Comments

phernand42 created an issue. See original summary.

  • greatmatter committed d1e097c7 on 1.1.x
    Fix bug reported by @phernand42 in #3539825 regarding the text keys not...
greatmatter’s picture

Category: Feature request » Bug report

Great catch. Now fixed in 1.1.22.

greatmatter’s picture

Status: Active » Fixed
phernand42’s picture

Thanks so much greatmatter

greatmatter’s picture

Status: Fixed » Closed (fixed)