mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-14 14:01:59 +01:00
Fix typo in some instances of enable_registration_token_3pid_bypass. (#12639)
This commit is contained in:
parent
c0379d6e5b
commit
cc7656099d
4 changed files with 5 additions and 4 deletions
1
changelog.d/12639.bugfix
Normal file
1
changelog.d/12639.bugfix
Normal file
|
@ -0,0 +1 @@
|
|||
Add new `enable_registration_token_3pid_bypass` configuration option to allow registrations via token as an alternative to verifying a 3pid.
|
|
@ -43,8 +43,8 @@ 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.enable_registration_token_3pid_bypass = config.get(
|
||||
"enable_registration_token_3pid_bypass", False
|
||||
)
|
||||
self.registration_shared_secret = config.get("registration_shared_secret")
|
||||
|
||||
|
|
|
@ -258,7 +258,7 @@ class RegistrationTokenAuthChecker(UserInteractiveAuthChecker):
|
|||
self.hs = hs
|
||||
self._enabled = bool(
|
||||
hs.config.registration.registration_requires_token
|
||||
) or bool(hs.config.registration.enable_registration_token_3pid_bypasss)
|
||||
) or bool(hs.config.registration.enable_registration_token_3pid_bypass)
|
||||
self.store = hs.get_datastores().main
|
||||
|
||||
def is_enabled(self) -> bool:
|
||||
|
|
|
@ -930,7 +930,7 @@ def _calculate_registration_flows(
|
|||
flows.append([LoginType.MSISDN, LoginType.EMAIL_IDENTITY])
|
||||
|
||||
# Add a flow that doesn't require any 3pids, if the config requests it.
|
||||
if config.registration.enable_registration_token_3pid_bypasss:
|
||||
if config.registration.enable_registration_token_3pid_bypass:
|
||||
flows.append([LoginType.REGISTRATION_TOKEN])
|
||||
|
||||
# Prepend m.login.terms to all flows if we're requiring consent
|
||||
|
|
Loading…
Reference in a new issue