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/handlers/register.py | |
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 '')
-rw-r--r-- | synapse/handlers/register.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/handlers/register.py b/synapse/handlers/register.py index 88c82ba7d0..8c3381df8a 100644 --- a/synapse/handlers/register.py +++ b/synapse/handlers/register.py @@ -90,7 +90,8 @@ class RegistrationHandler(BaseHandler): password=None, generate_token=True, guest_access_token=None, - make_guest=False + make_guest=False, + admin=False, ): """Registers a new client on the server. @@ -141,6 +142,7 @@ class RegistrationHandler(BaseHandler): # If the user was a guest then they already have a profile None if was_guest else user.localpart ), + admin=admin, ) else: # autogen a sequential user ID |