mirror of
https://mau.dev/maunium/synapse.git
synced 2024-08-25 03:35:28 +00:00
![]() 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). This commit adds a flag to inhibit the M_USER_IN_USE errors that are raised both by /register/available, and when providing a username early into the registration process. This error will still be raised if the user completes the registration process but the username conflicts. This is particularly useful when using modules (https://github.com/matrix-org/synapse/pull/11790 adds a module callback to set the username of users at registration) or SSO, since they can ensure the username is unique. More context is available in the PR that introduced this behaviour to synapse-dinsic: matrix-org/synapse-dinsic#48 - as well as the issue in the matrix-dinsic repo: matrix-org/matrix-dinsic#476 |
||
---|---|---|
.. | ||
__init__.py | ||
test_account.py | ||
test_auth.py | ||
test_capabilities.py | ||
test_consent.py | ||
test_directory.py | ||
test_ephemeral_message.py | ||
test_events.py | ||
test_filter.py | ||
test_groups.py | ||
test_identity.py | ||
test_keys.py | ||
test_login.py | ||
test_password_policy.py | ||
test_power_levels.py | ||
test_presence.py | ||
test_profile.py | ||
test_push_rule_attrs.py | ||
test_redactions.py | ||
test_register.py | ||
test_relations.py | ||
test_report_event.py | ||
test_retention.py | ||
test_room_batch.py | ||
test_rooms.py | ||
test_sendtodevice.py | ||
test_shadow_banned.py | ||
test_shared_rooms.py | ||
test_sync.py | ||
test_third_party_rules.py | ||
test_transactions.py | ||
test_typing.py | ||
test_upgrade_room.py | ||
utils.py |