diff options
author | Will Hunt <will@half-shot.uk> | 2022-04-27 13:57:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-27 12:57:53 +0000 |
commit | e8d1ec0e92da96a01b6c723fcdb4eac27f801e87 (patch) | |
tree | a751bfd0999028ee404e1a373fa376c7762bfa15 /synapse/config | |
parent | Add some type hints to datastore (#12485) (diff) | |
download | synapse-e8d1ec0e92da96a01b6c723fcdb4eac27f801e87.tar.xz |
Add option to enable token registration without requiring 3pids (#12526)
Diffstat (limited to 'synapse/config')
-rw-r--r-- | synapse/config/registration.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/synapse/config/registration.py b/synapse/config/registration.py index 39e9acb62a..70eb7e6a97 100644 --- a/synapse/config/registration.py +++ b/synapse/config/registration.py @@ -43,6 +43,9 @@ class RegistrationConfig(Config): self.registration_requires_token = config.get( "registration_requires_token", False ) + self.enable_registration_token_3pid_bypasss = config.get( + "enable_registration_token_3pid_bypasss", False + ) self.registration_shared_secret = config.get("registration_shared_secret") self.bcrypt_rounds = config.get("bcrypt_rounds", 12) @@ -309,6 +312,12 @@ class RegistrationConfig(Config): # #registration_requires_token: true + # Allow users to submit a token during registration to bypass any required 3pid + # steps configured in `registrations_require_3pid`. + # Defaults to false, requiring that registration tokens (if enabled) complete a 3pid flow. + # + #enable_registration_token_3pid_bypass: false + # If set, allows registration of standard or admin accounts by anyone who # has the shared secret, even if registration is otherwise disabled. # |