summary refs log tree commit diff
path: root/synapse/config/key.py
diff options
context:
space:
mode:
authorAmber Brown <hawkowl@atleastfornow.net>2019-01-11 02:21:54 +1100
committerAmber Brown <hawkowl@atleastfornow.net>2019-01-11 02:21:54 +1100
commitea00f18135ce30e8415526ce68585ea90da5b856 (patch)
tree4db5de20c8e5708a226cc4e6d8f90c3208005c3f /synapse/config/key.py
parentfix docker build to install optional deps (diff)
parentchangelog, for debian (diff)
downloadsynapse-ea00f18135ce30e8415526ce68585ea90da5b856.tar.xz
Merge Synapse v0.34.1.1
Diffstat (limited to 'synapse/config/key.py')
-rw-r--r--synapse/config/key.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/config/key.py b/synapse/config/key.py
index 53f48fe2dd..3b11f0cfa9 100644
--- a/synapse/config/key.py
+++ b/synapse/config/key.py
@@ -57,8 +57,8 @@ class KeyConfig(Config):
             # Unfortunately, there are people out there that don't have this
             # set. Lets just be "nice" and derive one from their secret key.
             logger.warn("Config is missing missing macaroon_secret_key")
-            seed = self.signing_key[0].seed
-            self.macaroon_secret_key = hashlib.sha256(seed)
+            seed = bytes(self.signing_key[0])
+            self.macaroon_secret_key = hashlib.sha256(seed).digest()
 
         self.expire_access_token = config.get("expire_access_token", False)