This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Add a config flag to inhibit M_USER_IN_USE
during registration
#11743
Merged
Commits on Jan 13, 2022
-
Add a config flag to ignore client-supplied usernames at registration
This is mostly motivated by the tchap use case, where usernames are automatically generated from the user's email address (in a way that allows figuring out the email address from the username). Therefore, it's an issue if we respond to requests on `/register` and `/register/available` with `M_USER_IN_USE`, because it can potentially leak email addresses (which include the user's real name and place of work). If this config flag is turned on, Synapse ignores any username supplied by the client on both endpoints, and instead generates a username automatically for the user. In the future, there will be a module callback that allows modules to decide which username to give the user (by e.g. deriving it from an email address), so usernames generated with this flag turned on won't be limited to integers.
Configuration menu - View commit details
-
Copy full SHA for abdcd9f - Browse repository at this point
Copy the full SHA abdcd9fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5236947 - Browse repository at this point
Copy the full SHA 5236947View commit details
Commits on Jan 14, 2022
-
Configuration menu - View commit details
-
Copy full SHA for d7f4db1 - Browse repository at this point
Copy the full SHA d7f4db1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4c77107 - Browse repository at this point
Copy the full SHA 4c77107View commit details -
Configuration menu - View commit details
-
Copy full SHA for f4a69b8 - Browse repository at this point
Copy the full SHA f4a69b8View commit details
Commits on Jan 20, 2022
-
Configuration menu - View commit details
-
Copy full SHA for ffd629d - Browse repository at this point
Copy the full SHA ffd629dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 540e0ca - Browse repository at this point
Copy the full SHA 540e0caView commit details -
Configuration menu - View commit details
-
Copy full SHA for 43af50c - Browse repository at this point
Copy the full SHA 43af50cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3375b21 - Browse repository at this point
Copy the full SHA 3375b21View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.