diff options
author | Erik Johnston <erik@matrix.org> | 2017-07-11 14:23:50 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-07-11 14:23:50 +0100 |
commit | 0aac30d53b1dba2f399cad0044a905286d8c79d2 (patch) | |
tree | 08ef02e81d52f1f77c0ad59e22917b25c292b560 /synapse/groups/attestations.py | |
parent | Comment (diff) | |
download | synapse-0aac30d53b1dba2f399cad0044a905286d8c79d2.tar.xz |
Comments
Diffstat (limited to 'synapse/groups/attestations.py')
-rw-r--r-- | synapse/groups/attestations.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/groups/attestations.py b/synapse/groups/attestations.py index 6937fa44cf..0741b55c1c 100644 --- a/synapse/groups/attestations.py +++ b/synapse/groups/attestations.py @@ -38,7 +38,7 @@ class GroupAttestationSigning(object): @defer.inlineCallbacks def verify_attestation(self, attestation, group_id, user_id, server_name=None): - """Verifies that the given attestation matches the given paramaters. + """Verifies that the given attestation matches the given parameters. An optional server_name can be supplied to explicitly set which server's signature is expected. Otherwise assumes that either the group_id or user_id @@ -51,7 +51,7 @@ class GroupAttestationSigning(object): elif get_domain_from_id(user_id) == self.server_name: server_name = get_domain_from_id(group_id) else: - raise Exception("Expected eitehr group_id or user_id to be local") + raise Exception("Expected either group_id or user_id to be local") if user_id != attestation["user_id"]: raise SynapseError(400, "Attestation has incorrect user_id") |