diff options
author | Matthew Hodgson <matthew@arasphere.net> | 2019-02-25 19:15:36 +0000 |
---|---|---|
committer | Amber Brown <hawkowl@atleastfornow.net> | 2019-02-25 11:15:36 -0800 |
commit | 70ea2f4e1df41458532c7964f4f707e04810e619 (patch) | |
tree | 83dea8691f041c13a6fa29a1cd8a45480449aab5 /synapse/handlers | |
parent | Merge pull request #4737 from matrix-org/erikj/failure_log_tb (diff) | |
download | synapse-70ea2f4e1df41458532c7964f4f707e04810e619.tar.xz |
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
Diffstat (limited to 'synapse/handlers')
-rw-r--r-- | synapse/handlers/register.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/register.py b/synapse/handlers/register.py index 24a4cb5a83..c0e06929bd 100644 --- a/synapse/handlers/register.py +++ b/synapse/handlers/register.py @@ -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, |