[tor-commits] [bridgedb/master] 4056-add smart defaults for recaptcha settings
arma at torproject.org
arma at torproject.org
Sat Oct 1 00:25:59 UTC 2011
commit e892917afee9e419daa7cf02a8c265a5fb809b39
Author: aagbsn <aagbsn at extc.org>
Date: Mon Sep 19 16:12:11 2011 -0700
4056-add smart defaults for recaptcha settings
If RECAPTCHA_* configuration options are not present in bridgedb.conf,
bridgedb disables recaptcha support.
---
lib/bridgedb/Main.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/lib/bridgedb/Main.py b/lib/bridgedb/Main.py
index 3e06936..55f2956 100644
--- a/lib/bridgedb/Main.py
+++ b/lib/bridgedb/Main.py
@@ -37,6 +37,9 @@ class Conf:
CONFIG_DEFAULTS = {
'HTTPS_INCLUDE_FINGERPRINTS' : False,
'EMAIL_INCLUDE_FINGERPRINTS' : False,
+ 'RECAPTCHA_ENABLED' : False,
+ 'RECAPTCHA_PUB_KEY' : "",
+ 'RECAPTCHA_PRIV_KEY' : ""
}
# An example configuration. Used for testing. See sample
More information about the tor-commits
mailing list