mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-01 00:38:42 -04:00
Add an admin option to shared secret registration
This commit is contained in:
parent
caf33b2d9b
commit
651faee698
4 changed files with 58 additions and 27 deletions
|
@ -345,6 +345,7 @@ class RegisterRestServlet(ClientV1RestServlet):
|
|||
user_id, token = yield handler.register(
|
||||
localpart=user,
|
||||
password=password,
|
||||
admin=bool(admin),
|
||||
)
|
||||
self._remove_session(session)
|
||||
defer.returnValue({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue