diff options
author | Will Hunt <will@half-shot.uk> | 2021-04-12 15:13:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-12 15:13:55 +0100 |
commit | e300ef64b16280ce2fdb7a8a9baef68b08aa9c88 (patch) | |
tree | d45e3f36a5d9ecd3c3084066a6eeef94c1ebb2e3 /synapse/api/constants.py | |
parent | Use mock from the stdlib. (#9772) (diff) | |
download | synapse-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.py | 5 |
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" |