From 0ca18870a615d2668539b690d8913bc7405addba Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Fri, 25 Jan 2019 11:53:30 +0000 Subject: [PATCH] Fix quoting for allowed_local_3pids example config If you use double-quotes here, you have to escape your backslashes. It's much easier with single-quotes. (Note that the existing double-backslashes are already interpreted by python's """ parsing.) --- changelog.d/4476.misc | 1 + synapse/config/registration.py | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 changelog.d/4476.misc diff --git a/changelog.d/4476.misc b/changelog.d/4476.misc new file mode 100644 index 000000000000..a070e10c7c51 --- /dev/null +++ b/changelog.d/4476.misc @@ -0,0 +1 @@ +Fix quoting for allowed_local_3pids example config diff --git a/synapse/config/registration.py b/synapse/config/registration.py index fe520d685539..d808a989f389 100644 --- a/synapse/config/registration.py +++ b/synapse/config/registration.py @@ -84,11 +84,11 @@ def default_config(self, generate_secrets=False, **kwargs): # # allowed_local_3pids: # - medium: email - # pattern: ".*@matrix\\.org" + # pattern: '.*@matrix\\.org' # - medium: email - # pattern: ".*@vector\\.im" + # pattern: '.*@vector\\.im' # - medium: msisdn - # pattern: "\\+44" + # pattern: '\\+44' # If set, allows registration by anyone who also has the shared # secret, even if registration is otherwise disabled.