diff options
author | Amber Brown <hawkowl@atleastfornow.net> | 2018-10-02 00:11:58 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-02 00:11:58 +1000 |
commit | 6e05fd032c670080f9e9f99f2e2e8b8eccf24c7d (patch) | |
tree | 80b2e221eff35fab33a956fe665ae289527126c3 /synapse/api/urls.py | |
parent | Merge pull request #3933 from matrix-org/erikj/destination_retry_cache (diff) | |
download | synapse-6e05fd032c670080f9e9f99f2e2e8b8eccf24c7d.tar.xz |
Fix userconsent on Python 3 (#3938)
Diffstat (limited to 'synapse/api/urls.py')
-rw-r--r-- | synapse/api/urls.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/api/urls.py b/synapse/api/urls.py index 71347912f1..6d9f1ca0ef 100644 --- a/synapse/api/urls.py +++ b/synapse/api/urls.py @@ -64,7 +64,7 @@ class ConsentURIBuilder(object): """ mac = hmac.new( key=self._hmac_secret, - msg=user_id, + msg=user_id.encode('ascii'), digestmod=sha256, ).hexdigest() consent_uri = "%s_matrix/consent?%s" % ( |