summary refs log tree commit diff
path: root/synapse/handlers/register.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-07-05 17:30:22 +0100
committerErik Johnston <erik@matrix.org>2016-07-05 17:30:22 +0100
commit651faee698d5ff4806d1e0e7f5cd4c438bf434f1 (patch)
treee78a06f28f9a907f74a2e5d2e954eb5e8e33cfaf /synapse/handlers/register.py
parentProtect password when registering using shared secret (diff)
downloadsynapse-651faee698d5ff4806d1e0e7f5cd4c438bf434f1.tar.xz
Add an admin option to shared secret registration
Diffstat (limited to '')
-rw-r--r--synapse/handlers/register.py4
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