Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Anti-censorship
BridgeDB
Commits
aa9671e4
Unverified
Commit
aa9671e4
authored
May 14, 2014
by
Isis Lovecruft
Browse files
Rename config var RECAPTCHA_PRIV_KEY → RECAPTCHA_SEC_KEY.
parent
9258d8ad
Changes
3
Hide whitespace changes
Inline
Side-by-side
README
View file @
aa9671e4
...
...
@@ -166,7 +166,7 @@ bridgedb.conf:
RECAPTCHA_ENABLED
RECAPTCHA_PUB_KEY
RECAPTCHA_
PRIV
_KEY
RECAPTCHA_
SEC
_KEY
A [recaptcha.net](https://www.google.com/recaptcha) account is required.
...
...
bridgedb.conf
View file @
aa9671e4
...
...
@@ -15,11 +15,14 @@
# for details.
# :copyright: (c) 2007-2013 The Tor Project, Inc.
# (c) 2007-2013, all sentient entities within the AUTHORS file
# :version: 0.0.
7
# :version: 0.0.
8
#===============================================================================
#
# CHANGELOG:
# ~~~~~~~~~~
# Changes in version 0.0.8 - 2014-05-14
# * CHANGE RECAPTCHA_PRIV_KEY to RECAPTCHA_SEC_KEY.
#
# Changes in version 0.0.7 - 2014-03-31
# * ADD new settings for tracing function calls and thread info within logged
# messages: LOG_THREADS, LOG_TRACE, and LOG_TIME_FORMAT.
...
...
@@ -242,7 +245,7 @@ RECAPTCHA_ENABLED = False
# Recaptcha API keys
RECAPTCHA_PUB_KEY
=
''
RECAPTCHA_
PRIV
_KEY
=
''
RECAPTCHA_
SEC
_KEY
=
''
# The remoteip we send to reCAPTCHA during verification
RECAPTCHA_REMOTEIP
=
''
...
...
lib/bridgedb/HTTPServer.py
View file @
aa9671e4
...
...
@@ -837,7 +837,7 @@ def addWebServer(cfg, dist, sched):
HTTPS_USE_IP_FROM_FORWARDED_HEADER
RECAPTCHA_ENABLED
RECAPTCHA_PUB_KEY
RECAPTCHA_
PRIV
_KEY
RECAPTCHA_
SEC
_KEY
RECAPTCHA_REMOTEIP
GIMP_CAPTCHA_ENABLED
GIMP_CAPTCHA_DIR
...
...
@@ -864,7 +864,7 @@ def addWebServer(cfg, dist, sched):
if
cfg
.
RECAPTCHA_ENABLED
:
protected
=
ReCaptchaProtectedResource
(
recaptchaPrivKey
=
cfg
.
RECAPTCHA_
PRIV
_KEY
,
recaptchaPrivKey
=
cfg
.
RECAPTCHA_
SEC
_KEY
,
recaptchaPubKey
=
cfg
.
RECAPTCHA_PUB_KEY
,
remoteip
=
cfg
.
RECAPTCHA_REMOTEIP
,
useForwardedHeader
=
cfg
.
HTTP_USE_IP_FROM_FORWARDED_HEADER
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment