diff options
author | Amber Brown <hawkowl@atleastfornow.net> | 2018-11-06 05:53:44 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-06 05:53:44 +1100 |
commit | efdcbbe46bfe39f0dd3ef508bb08c37326892adc (patch) | |
tree | 79aa5f81a6c652e4b874b4083813d3928f82d21b /synapse/rest/consent | |
parent | Add some tests for the HTTP pusher (#4149) (diff) | |
download | synapse-efdcbbe46bfe39f0dd3ef508bb08c37326892adc.tar.xz |
Tests for user consent resource (#4140)
Diffstat (limited to 'synapse/rest/consent')
-rw-r--r-- | synapse/rest/consent/consent_resource.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/consent/consent_resource.py b/synapse/rest/consent/consent_resource.py index 89b82b0591..c85e84b465 100644 --- a/synapse/rest/consent/consent_resource.py +++ b/synapse/rest/consent/consent_resource.py @@ -227,7 +227,7 @@ class ConsentResource(Resource): key=self._hmac_secret, msg=userid.encode('utf-8'), digestmod=sha256, - ).hexdigest() + ).hexdigest().encode('ascii') if not compare_digest(want_mac, userhmac): raise SynapseError(http_client.FORBIDDEN, "HMAC incorrect") |