mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 08:56:04 -04:00
Register a user account for the AS when the AS registers. Add 'sender' column to AS table.
This commit is contained in:
parent
73a680b2a8
commit
ac3183caaa
5 changed files with 14 additions and 4 deletions
|
@ -52,8 +52,14 @@ class ApplicationServicesHandler(object):
|
|||
"Consult the home server admin.",
|
||||
errcode=Codes.FORBIDDEN
|
||||
)
|
||||
logger.info("Updating application service info...")
|
||||
|
||||
app_service.hs_token = self._generate_hs_token()
|
||||
|
||||
# create a sender for this application service which is used when
|
||||
# creating rooms, etc..
|
||||
account = yield self.hs.get_handlers().registration_handler.register()
|
||||
app_service.sender = account[0]
|
||||
|
||||
yield self.store.update_app_service(app_service)
|
||||
defer.returnValue(app_service)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue