diff options
author | Daniel Wagner-Hall <daniel@matrix.org> | 2015-08-19 14:30:31 +0100 |
---|---|---|
committer | Daniel Wagner-Hall <daniel@matrix.org> | 2015-08-19 14:30:31 +0100 |
commit | 70e265e695a67a412b5ac76cc9bae71e9d384e80 (patch) | |
tree | 252da86c685f966d085f28c0f7ecfffce5515837 /synapse | |
parent | Switch to pymacaroons-pynacl (diff) | |
download | synapse-70e265e695a67a412b5ac76cc9bae71e9d384e80.tar.xz |
Re-add whitespace around caveat operators
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/handlers/register.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/synapse/handlers/register.py b/synapse/handlers/register.py index 557aec4e6c..c391c1bdf5 100644 --- a/synapse/handlers/register.py +++ b/synapse/handlers/register.py @@ -278,12 +278,12 @@ class RegistrationHandler(BaseHandler): location = self.hs.config.server_name, identifier = "key", key = self.hs.config.macaroon_secret_key) - macaroon.add_first_party_caveat("gen=1") - macaroon.add_first_party_caveat("user_id=%s" % (user_id,)) - macaroon.add_first_party_caveat("type=access") + macaroon.add_first_party_caveat("gen = 1") + macaroon.add_first_party_caveat("user_id = %s" % (user_id,)) + macaroon.add_first_party_caveat("type = access") now = self.hs.get_clock().time_msec() expiry = now + (60 * 60 * 1000) - macaroon.add_first_party_caveat("time<%d" % (expiry,)) + macaroon.add_first_party_caveat("time < %d" % (expiry,)) return macaroon.serialize() |