[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [bridgedb/master] 4056-add smart defaults for recaptcha settings
commit e892917afee9e419daa7cf02a8c265a5fb809b39
Author: aagbsn <aagbsn@xxxxxxxx>
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
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits