mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 10:46:06 -04:00
Set the service ID as soon as it is known.
This commit is contained in:
parent
d04fa1f712
commit
f0d6f724a2
2 changed files with 5 additions and 4 deletions
|
@ -59,13 +59,13 @@ class ApplicationServicesHandler(object):
|
|||
)
|
||||
if not stored_service:
|
||||
raise StoreError(404, "Application service not found")
|
||||
app_service.id = stored_service.id
|
||||
except StoreError:
|
||||
raise SynapseError(
|
||||
403, "Unrecognised application services token. "
|
||||
"Consult the home server admin.",
|
||||
errcode=Codes.FORBIDDEN
|
||||
)
|
||||
|
||||
app_service.hs_token = self._generate_hs_token()
|
||||
|
||||
# create a sender for this application service which is used when
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue