From 76090cf6cf67b1b3d89fbf586652b55baff3b71f Mon Sep 17 00:00:00 2001
From: anoadragon453 If this is set, users must provide all of the specified types of 3PID when registering an account. If this is set, users must provide all of the specified types of 3PID when registering an account. Note that Example configuration: Mandate that users are only allowed to associate certain formats of
-3PIDs with accounts on this server, as specified by the enable_registration
is al
-registrations_require_3pid
enable_registration
must also be set to allow account registration.registrations_require_3pid:
@@ -2184,7 +2184,9 @@ flow (overrides
registrations_require_3pid
if MSISDNs are set as re
allowed_local_3pids
medium
and pattern
sub-options.medium
and pattern
sub-options.
+pattern
is a Perl-like regular expression.
More information about 3PIDs, allowed medium
types and their address
syntax can be found in the Matrix spec.
Example configuration:
allowed_local_3pids:
- medium: email
@@ -2192,7 +2194,7 @@ flow (overrides registrations_require_3pid
if MSISDNs are set as re
- medium: email
pattern: '^[^@]+@vector\.im$'
- medium: msisdn
- pattern: '\+44'
+ pattern: '^44\d{10}$'
enable_3pid_lookup