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

Add a config flag to inhibit M_USER_IN_USE during registration #11743

Merged
merged 9 commits into from
Jan 26, 2022

Commits on Jan 13, 2022

  1. 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.
    babolivier committed Jan 13, 2022
    Configuration menu
    Copy the full SHA
    abdcd9f View commit details
    Browse the repository at this point in the history
  2. Fix changelog number

    babolivier committed Jan 13, 2022
    Configuration menu
    Copy the full SHA
    5236947 View commit details
    Browse the repository at this point in the history

Commits on Jan 14, 2022

  1. Sample config

    babolivier committed Jan 14, 2022
    Configuration menu
    Copy the full SHA
    d7f4db1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4c77107 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f4a69b8 View commit details
    Browse the repository at this point in the history

Commits on Jan 20, 2022

  1. Configuration menu
    Copy the full SHA
    ffd629d View commit details
    Browse the repository at this point in the history
  2. Fixup changelog

    babolivier committed Jan 20, 2022
    Configuration menu
    Copy the full SHA
    540e0ca View commit details
    Browse the repository at this point in the history
  3. Lint

    babolivier committed Jan 20, 2022
    Configuration menu
    Copy the full SHA
    43af50c View commit details
    Browse the repository at this point in the history
  4. Config

    babolivier committed Jan 20, 2022
    Configuration menu
    Copy the full SHA
    3375b21 View commit details
    Browse the repository at this point in the history