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

Commit

Permalink
Remove unused config flags
Browse files Browse the repository at this point in the history
  • Loading branch information
babolivier committed Feb 8, 2022
1 parent 96fc8a7 commit 92f7c6a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
11 changes: 0 additions & 11 deletions docs/sample_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1290,17 +1290,6 @@ oembed:
# Mandate that users are only allowed to associate certain formats of
# 3PIDs with accounts on this server.
#
# Use an Identity Server to establish which 3PIDs are allowed to register?
# Overrides allowed_local_3pids below.
#
#check_is_for_allowed_local_3pids: matrix.org
#
# If you are using an IS you can also check whether that IS registers
# pending invites for the given 3PID (and then allow it to sign up on
# the platform):
#
#allow_invited_3pids: false
#
#allowed_local_3pids:
# - medium: email
# pattern: '^[^@]+@matrix\.org$'
Expand Down
15 changes: 0 additions & 15 deletions synapse/config/registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ def read_config(self, config, **kwargs):

self.registrations_require_3pid = config.get("registrations_require_3pid", [])
self.allowed_local_3pids = config.get("allowed_local_3pids", [])
self.check_is_for_allowed_local_3pids = config.get(
"check_is_for_allowed_local_3pids", None
)
self.allow_invited_3pids = config.get("allow_invited_3pids", False)

self.disable_3pid_changes = config.get("disable_3pid_changes", False)

Expand Down Expand Up @@ -321,17 +317,6 @@ def generate_config_section(self, generate_secrets=False, **kwargs):
# Mandate that users are only allowed to associate certain formats of
# 3PIDs with accounts on this server.
#
# Use an Identity Server to establish which 3PIDs are allowed to register?
# Overrides allowed_local_3pids below.
#
#check_is_for_allowed_local_3pids: matrix.org
#
# If you are using an IS you can also check whether that IS registers
# pending invites for the given 3PID (and then allow it to sign up on
# the platform):
#
#allow_invited_3pids: false
#
#allowed_local_3pids:
# - medium: email
# pattern: '^[^@]+@matrix\\.org$'
Expand Down

0 comments on commit 92f7c6a

Please sign in to comment.