diff options
author | Erik Johnston <erik@matrix.org> | 2016-07-05 17:30:22 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-07-05 17:30:22 +0100 |
commit | 651faee698d5ff4806d1e0e7f5cd4c438bf434f1 (patch) | |
tree | e78a06f28f9a907f74a2e5d2e954eb5e8e33cfaf /synapse/rest | |
parent | Protect password when registering using shared secret (diff) | |
download | synapse-651faee698d5ff4806d1e0e7f5cd4c438bf434f1.tar.xz |
Add an admin option to shared secret registration
Diffstat (limited to 'synapse/rest')
-rw-r--r-- | synapse/rest/client/v1/register.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/rest/client/v1/register.py b/synapse/rest/client/v1/register.py index 0eb7490e5d..25d63a0b0b 100644 --- a/synapse/rest/client/v1/register.py +++ b/synapse/rest/client/v1/register.py @@ -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({ |