mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-28 07:00:51 +03:00
Remove incorrect whitespace
This commit is contained in:
parent
4e706ec82c
commit
225c244aba
1 changed files with 3 additions and 3 deletions
|
@ -275,9 +275,9 @@ class RegistrationHandler(BaseHandler):
|
||||||
|
|
||||||
def generate_token(self, user_id):
|
def generate_token(self, user_id):
|
||||||
macaroon = pymacaroons.Macaroon(
|
macaroon = pymacaroons.Macaroon(
|
||||||
location = self.hs.config.server_name,
|
location=self.hs.config.server_name,
|
||||||
identifier = "key",
|
identifier="key",
|
||||||
key = self.hs.config.macaroon_secret_key)
|
key=self.hs.config.macaroon_secret_key)
|
||||||
macaroon.add_first_party_caveat("gen = 1")
|
macaroon.add_first_party_caveat("gen = 1")
|
||||||
macaroon.add_first_party_caveat("user_id = %s" % (user_id,))
|
macaroon.add_first_party_caveat("user_id = %s" % (user_id,))
|
||||||
macaroon.add_first_party_caveat("type = access")
|
macaroon.add_first_party_caveat("type = access")
|
||||||
|
|
Loading…
Reference in a new issue