Commit 2e7895b
Rework Continuwuity ReCAPTCHA gating to use a derived internal flag
Move the enablement logic out of `defaults/main.yml` and into a derived
`matrix_continuwuity_recaptcha_enabled` flag in `vars/main.yml`, since it
is computed (not user-facing) state. Continuwuity has no native
enable-captcha toggle, so presence of both keys is what enables the flow.
Replace the partial-config validation with a single consistency check
that fails only when exactly one of the two keys is set, and keep both
keys empty by default so nothing is rendered when ReCAPTCHA is unused.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 154d220 commit 2e7895b
3 files changed
Lines changed: 15 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
195 | | - | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
196 | 197 | | |
197 | 198 | | |
198 | 199 | | |
| |||
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
8 | 14 | | |
9 | 15 | | |
0 commit comments