mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-18 17:57:50 -04:00
switch from google.com to recaptcha.net for reCAPTCHA (#4731)
* add trivial clarification about jemalloc * switch from google.com to recaptcha.net because https://developers.google.com/recaptcha/docs/faq#can-i-use-recaptcha-globally
This commit is contained in:
parent
65f3fbfbf7
commit
70ea2f4e1d
5 changed files with 7 additions and 5 deletions
|
@ -460,7 +460,7 @@ class RegistrationHandler(BaseHandler):
|
|||
lines = response.split('\n')
|
||||
json = {
|
||||
"valid": lines[0] == 'true',
|
||||
"error_url": "http://www.google.com/recaptcha/api/challenge?" +
|
||||
"error_url": "http://www.recaptcha.net/recaptcha/api/challenge?" +
|
||||
"error=%s" % lines[1]
|
||||
}
|
||||
defer.returnValue(json)
|
||||
|
@ -471,7 +471,7 @@ class RegistrationHandler(BaseHandler):
|
|||
Used only by c/s api v1
|
||||
"""
|
||||
data = yield self.captcha_client.post_urlencoded_get_raw(
|
||||
"http://www.google.com:80/recaptcha/api/verify",
|
||||
"http://www.recaptcha.net:80/recaptcha/api/verify",
|
||||
args={
|
||||
'privatekey': private_key,
|
||||
'remoteip': ip_addr,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue