Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit cc76560

Browse files
authored
Fix typo in some instances of enable_registration_token_3pid_bypass. (#12639)
1 parent c0379d6 commit cc76560

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

changelog.d/12639.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add new `enable_registration_token_3pid_bypass` configuration option to allow registrations via token as an alternative to verifying a 3pid.

synapse/config/registration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ def read_config(self, config: JsonDict, **kwargs: Any) -> None:
4343
self.registration_requires_token = config.get(
4444
"registration_requires_token", False
4545
)
46-
self.enable_registration_token_3pid_bypasss = config.get(
47-
"enable_registration_token_3pid_bypasss", False
46+
self.enable_registration_token_3pid_bypass = config.get(
47+
"enable_registration_token_3pid_bypass", False
4848
)
4949
self.registration_shared_secret = config.get("registration_shared_secret")
5050

synapse/handlers/ui_auth/checkers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def __init__(self, hs: "HomeServer"):
258258
self.hs = hs
259259
self._enabled = bool(
260260
hs.config.registration.registration_requires_token
261-
) or bool(hs.config.registration.enable_registration_token_3pid_bypasss)
261+
) or bool(hs.config.registration.enable_registration_token_3pid_bypass)
262262
self.store = hs.get_datastores().main
263263

264264
def is_enabled(self) -> bool:

synapse/rest/client/register.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ def _calculate_registration_flows(
930930
flows.append([LoginType.MSISDN, LoginType.EMAIL_IDENTITY])
931931

932932
# Add a flow that doesn't require any 3pids, if the config requests it.
933-
if config.registration.enable_registration_token_3pid_bypasss:
933+
if config.registration.enable_registration_token_3pid_bypass:
934934
flows.append([LoginType.REGISTRATION_TOKEN])
935935

936936
# Prepend m.login.terms to all flows if we're requiring consent

0 commit comments

Comments
 (0)