mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-06 09:14:14 -04:00
Store appservice ID on register
This commit is contained in:
parent
703826886c
commit
465605d616
2 changed files with 38 additions and 7 deletions
|
@ -182,6 +182,8 @@ class RegistrationHandler(BaseHandler):
|
|||
errcode=Codes.EXCLUSIVE
|
||||
)
|
||||
|
||||
service_id = service.id if service.is_exclusive_user(user_id) else None
|
||||
|
||||
yield self.check_user_id_not_appservice_exclusive(
|
||||
user_id, allowed_appservice=service
|
||||
)
|
||||
|
@ -190,7 +192,8 @@ class RegistrationHandler(BaseHandler):
|
|||
yield self.store.register(
|
||||
user_id=user_id,
|
||||
token=token,
|
||||
password_hash=""
|
||||
password_hash="",
|
||||
appservice_id=service_id,
|
||||
)
|
||||
yield registered_user(self.distributor, user)
|
||||
defer.returnValue((user_id, token))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue