Fossil SCM

Add the auto-captcha setting back to the command-line setting command. Default auto-captcha to on.

drh 2010-05-22 13:24 trunk
Commit 5fbd593aa7eae112b8f22c4819c1a1384ccbc049
2 files changed +4 +1 -1
+4
--- src/db.c
+++ src/db.c
@@ -1488,10 +1488,13 @@
14881488
** values. With just a property name it shows the value of that property.
14891489
** With a value argument it changes the property for the current repository.
14901490
**
14911491
** The "unset" command clears a property setting.
14921492
**
1493
+**
1494
+** auto-captcha If enabled, the Login page provides a button to
1495
+** fill in the captcha password. Default: on
14931496
**
14941497
** autosync If enabled, automatically pull prior to commit
14951498
** or update and automatically push after commit or
14961499
** tag or branch creation. If the the value is "pullonly"
14971500
** then only pull operations occur automatically.
@@ -1543,10 +1546,11 @@
15431546
** Defaults to "start" on windows, "open" on Mac,
15441547
** and "firefox" on Unix.
15451548
*/
15461549
void setting_cmd(void){
15471550
static const char *azName[] = {
1551
+ "auto-captcha",
15481552
"autosync",
15491553
"binary-glob",
15501554
"clearsign",
15511555
"diff-command",
15521556
"dont-push",
15531557
--- src/db.c
+++ src/db.c
@@ -1488,10 +1488,13 @@
1488 ** values. With just a property name it shows the value of that property.
1489 ** With a value argument it changes the property for the current repository.
1490 **
1491 ** The "unset" command clears a property setting.
1492 **
 
 
 
1493 **
1494 ** autosync If enabled, automatically pull prior to commit
1495 ** or update and automatically push after commit or
1496 ** tag or branch creation. If the the value is "pullonly"
1497 ** then only pull operations occur automatically.
@@ -1543,10 +1546,11 @@
1543 ** Defaults to "start" on windows, "open" on Mac,
1544 ** and "firefox" on Unix.
1545 */
1546 void setting_cmd(void){
1547 static const char *azName[] = {
 
1548 "autosync",
1549 "binary-glob",
1550 "clearsign",
1551 "diff-command",
1552 "dont-push",
1553
--- src/db.c
+++ src/db.c
@@ -1488,10 +1488,13 @@
1488 ** values. With just a property name it shows the value of that property.
1489 ** With a value argument it changes the property for the current repository.
1490 **
1491 ** The "unset" command clears a property setting.
1492 **
1493 **
1494 ** auto-captcha If enabled, the Login page provides a button to
1495 ** fill in the captcha password. Default: on
1496 **
1497 ** autosync If enabled, automatically pull prior to commit
1498 ** or update and automatically push after commit or
1499 ** tag or branch creation. If the the value is "pullonly"
1500 ** then only pull operations occur automatically.
@@ -1543,10 +1546,11 @@
1546 ** Defaults to "start" on windows, "open" on Mac,
1547 ** and "firefox" on Unix.
1548 */
1549 void setting_cmd(void){
1550 static const char *azName[] = {
1551 "auto-captcha",
1552 "autosync",
1553 "binary-glob",
1554 "clearsign",
1555 "diff-command",
1556 "dont-push",
1557
+1 -1
--- src/login.c
+++ src/login.c
@@ -268,11 +268,11 @@
268268
@ You must configure your web browser to accept cookies in order for
269269
@ the login to take.</p>
270270
if( zAnonPw ){
271271
unsigned int uSeed = captcha_seed();
272272
char const *zDecoded = captcha_decode(uSeed);
273
- int bAutoCaptcha = db_get_boolean("auto-captcha", 0);
273
+ int bAutoCaptcha = db_get_boolean("auto-captcha", 1);
274274
char *zCaptcha = captcha_render(zDecoded);
275275
276276
@ <input type="hidden" name="cs" value="%u(uSeed)"/>
277277
@ <p>Visitors may enter <b>anonymous</b> as the user-ID with
278278
@ the 8-character hexadecimal password shown below:</p>
279279
--- src/login.c
+++ src/login.c
@@ -268,11 +268,11 @@
268 @ You must configure your web browser to accept cookies in order for
269 @ the login to take.</p>
270 if( zAnonPw ){
271 unsigned int uSeed = captcha_seed();
272 char const *zDecoded = captcha_decode(uSeed);
273 int bAutoCaptcha = db_get_boolean("auto-captcha", 0);
274 char *zCaptcha = captcha_render(zDecoded);
275
276 @ <input type="hidden" name="cs" value="%u(uSeed)"/>
277 @ <p>Visitors may enter <b>anonymous</b> as the user-ID with
278 @ the 8-character hexadecimal password shown below:</p>
279
--- src/login.c
+++ src/login.c
@@ -268,11 +268,11 @@
268 @ You must configure your web browser to accept cookies in order for
269 @ the login to take.</p>
270 if( zAnonPw ){
271 unsigned int uSeed = captcha_seed();
272 char const *zDecoded = captcha_decode(uSeed);
273 int bAutoCaptcha = db_get_boolean("auto-captcha", 1);
274 char *zCaptcha = captcha_render(zDecoded);
275
276 @ <input type="hidden" name="cs" value="%u(uSeed)"/>
277 @ <p>Visitors may enter <b>anonymous</b> as the user-ID with
278 @ the 8-character hexadecimal password shown below:</p>
279

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button