Skip to content
Snippets Groups Projects
Unverified Commit 2d3bd9aa authored by Brendan Abolivier's avatar Brendan Abolivier Committed by GitHub
Browse files

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: default avatarDavid Robertson <davidr@element.io>
parent 2897fb6b
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment