MatrixSynapse/tests
Brendan Abolivier 2d3bd9aa67
Add a module callback to set username at registration (#11790)
This is in the context of mainlining the Tchap fork of Synapse. Currently in Tchap usernames are derived from the user's email address (extracted from the UIA results, more specifically the m.login.email.identity step).
This change also exports the check_username method from the registration handler as part of the module API, so that a module can check if the username it's trying to generate is correct and doesn't conflict with an existing one, and fallback gracefully if not.

Co-authored-by: David Robertson <davidr@element.io>
2022-01-26 14:21:13 +00:00
..
api Allow tracking puppeted users for MAU (#11561) 2022-01-12 16:09:36 +00:00
app
appservice
config
crypto Deal with mypy errors w/ type-hinted pynacl 1.5.0 (#11714) 2022-01-12 14:54:06 +00:00
events
federation
handlers Add a module callback to set username at registration (#11790) 2022-01-26 14:21:13 +00:00
http Add a regression test for using both webclient and client resources simultaneously (#11765) 2022-01-20 09:47:29 -05:00
logging
module_api
push
replication Make the `get_global_account_data_by_type_for_user` cache be a tree-cache whose key is prefixed with the user ID (#11788) 2022-01-21 08:38:36 +00:00
rest Improvements to bundling aggregations. (#11815) 2022-01-26 08:27:04 -05:00
scripts
server_notices
state
storage Synapse 1.51.0rc2 (2022-01-24) 2022-01-24 13:55:03 +00:00
test_utils Cache empty responses from `/user/devices` (#11587) 2022-01-05 13:33:28 +00:00
util
__init__.py
server.py Support rendering previews with data: URLs in them (#11767) 2022-01-24 08:58:18 -05:00
test_distributor.py
test_event_auth.py
test_federation.py Strip unauthorized fields from `unsigned` object in events received over federation (#11530) 2022-01-06 09:09:30 -08:00
test_mau.py
test_metrics.py
test_phone_home.py
test_server.py
test_state.py
test_terms_auth.py
test_test_utils.py
test_types.py
test_visibility.py
unittest.py
utils.py Optionally use an on-disk sqlite db in tests (#11702) 2022-01-07 19:13:41 +00:00