Skip to content
Snippets Groups Projects
Commit efc522c5 authored by Richard van der Hoff's avatar Richard van der Hoff
Browse files

Fix macaroon_secret_key fallback logic

parent 566947ff
No related branches found
No related tags found
No related merge requests found
......@@ -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 = random_string_with_symbols(50)
macaroon_secret_key = '"%s"' % random_string_with_symbols(50)
form_secret = '"%s"' % random_string_with_symbols(50)
else:
macaroon_secret_key = None
macaroon_secret_key = 'null'
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment