summary refs log tree commit diff
path: root/synapse/api/constants.py
diff options
context:
space:
mode:
authorWill Hunt <will@half-shot.uk>2021-04-12 15:13:55 +0100
committerGitHub <noreply@github.com>2021-04-12 15:13:55 +0100
commite300ef64b16280ce2fdb7a8a9baef68b08aa9c88 (patch)
treed45e3f36a5d9ecd3c3084066a6eeef94c1ebb2e3 /synapse/api/constants.py
parentUse mock from the stdlib. (#9772) (diff)
downloadsynapse-e300ef64b16280ce2fdb7a8a9baef68b08aa9c88.tar.xz
Require AppserviceRegistrationType (#9548)
This change ensures that the appservice registration behaviour follows the spec. We decided to do this for Dendrite, so it made sense to also make a PR for synapse to correct the behaviour.
Diffstat (limited to 'synapse/api/constants.py')
-rw-r--r--synapse/api/constants.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/api/constants.py b/synapse/api/constants.py
index 6856dab06c..a8ae41de48 100644
--- a/synapse/api/constants.py
+++ b/synapse/api/constants.py
@@ -73,6 +73,11 @@ class LoginType:
     DUMMY = "m.login.dummy"
 
 
+# This is used in the `type` parameter for /register when called by
+# an appservice to register a new user.
+APP_SERVICE_REGISTRATION_TYPE = "m.login.application_service"
+
+
 class EventTypes:
     Member = "m.room.member"
     Create = "m.room.create"