0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-14 11:23:52 +01:00

Revert "Fix macaroon_secret_key fallback logic"

This is already fixed in 0.34.1, by 59f93bb

This reverts commit efc522c55e.
This commit is contained in:
Richard van der Hoff 2019-01-10 14:09:26 +00:00
parent 4f24452ead
commit ba41aeed6a

View file

@ -71,14 +71,14 @@ class KeyConfig(Config):
base_key_name = os.path.join(config_dir_path, server_name)
if is_generating_file:
macaroon_secret_key = '"%s"' % random_string_with_symbols(50)
macaroon_secret_key = random_string_with_symbols(50)
form_secret = '"%s"' % random_string_with_symbols(50)
else:
macaroon_secret_key = 'null'
macaroon_secret_key = None
form_secret = 'null'
return """\
macaroon_secret_key: %(macaroon_secret_key)s
macaroon_secret_key: "%(macaroon_secret_key)s"
# Used to enable access token expiration.
expire_access_token: False