Add an admin option to shared secret registration

This commit is contained in:
Erik Johnston 2016-07-05 17:30:22 +01:00
parent caf33b2d9b
commit 651faee698
4 changed files with 58 additions and 27 deletions

View file

@ -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({