diff options
author | Andrej Shadura <andrewsh@debian.org> | 2020-09-23 10:00:31 +0200 |
---|---|---|
committer | Andrej Shadura <andrewsh@debian.org> | 2020-09-23 10:00:31 +0200 |
commit | c4b994b356a5af29bdf1f8648dd7d929a237acbd (patch) | |
tree | 6163eda9a9a5329caea1cf5b4ad42b974cc1ae3b /synapse/handlers/ui_auth/checkers.py | |
parent | a8007890d174f089f2ce28aae9d919df346f74f9 (diff) |
New upstream version 1.20.0
Diffstat (limited to 'synapse/handlers/ui_auth/checkers.py')
-rw-r--r-- | synapse/handlers/ui_auth/checkers.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/synapse/handlers/ui_auth/checkers.py b/synapse/handlers/ui_auth/checkers.py index a011e9fe..9146dc1a 100644 --- a/synapse/handlers/ui_auth/checkers.py +++ b/synapse/handlers/ui_auth/checkers.py @@ -16,13 +16,12 @@ import logging from typing import Any -from canonicaljson import json - from twisted.web.client import PartialDownloadError from synapse.api.constants import LoginType from synapse.api.errors import Codes, LoginError, SynapseError from synapse.config.emailconfig import ThreepidBehaviour +from synapse.util import json_decoder logger = logging.getLogger(__name__) @@ -117,7 +116,7 @@ class RecaptchaAuthChecker(UserInteractiveAuthChecker): except PartialDownloadError as pde: # Twisted is silly data = pde.response - resp_body = json.loads(data.decode("utf-8")) + resp_body = json_decoder.decode(data.decode("utf-8")) if "success" in resp_body: # Note that we do NOT check the hostname here: we explicitly |