Fossil SCM
Disable the captcha when it's not needed, as it complicates testing.
Commit
1c75911980a3d3c0c43a1f9f9913a100a54c87822724196cfbd7f50f2b28ed14
Parent
c7a84df415a0195…
1 file changed
+1
-1
+1
-1
| --- src/forum.c | ||
| +++ src/forum.c | ||
| @@ -2028,11 +2028,11 @@ | ||
| 2028 | 2028 | When it's enabled, the above won't do anything and |
| 2029 | 2029 | JS will render the editor form in the next element. */ |
| 2030 | 2030 | @ <div hidden id='forumnew-placeholder'> |
| 2031 | 2031 | @ <input type='hidden' name='title' value='%h(zTitle)'> |
| 2032 | 2032 | login_insert_csrf_secret(); |
| 2033 | - captcha_generate_for_js(0x02); | |
| 2033 | + captcha_generate_for_js(0); | |
| 2034 | 2034 | @ </div> |
| 2035 | 2035 | } |
| 2036 | 2036 | forum_emit_js(); |
| 2037 | 2037 | style_finish_page(); |
| 2038 | 2038 | } |
| 2039 | 2039 |
| --- src/forum.c | |
| +++ src/forum.c | |
| @@ -2028,11 +2028,11 @@ | |
| 2028 | When it's enabled, the above won't do anything and |
| 2029 | JS will render the editor form in the next element. */ |
| 2030 | @ <div hidden id='forumnew-placeholder'> |
| 2031 | @ <input type='hidden' name='title' value='%h(zTitle)'> |
| 2032 | login_insert_csrf_secret(); |
| 2033 | captcha_generate_for_js(0x02); |
| 2034 | @ </div> |
| 2035 | } |
| 2036 | forum_emit_js(); |
| 2037 | style_finish_page(); |
| 2038 | } |
| 2039 |
| --- src/forum.c | |
| +++ src/forum.c | |
| @@ -2028,11 +2028,11 @@ | |
| 2028 | When it's enabled, the above won't do anything and |
| 2029 | JS will render the editor form in the next element. */ |
| 2030 | @ <div hidden id='forumnew-placeholder'> |
| 2031 | @ <input type='hidden' name='title' value='%h(zTitle)'> |
| 2032 | login_insert_csrf_secret(); |
| 2033 | captcha_generate_for_js(0); |
| 2034 | @ </div> |
| 2035 | } |
| 2036 | forum_emit_js(); |
| 2037 | style_finish_page(); |
| 2038 | } |
| 2039 |