Skip to content
Snippets Groups Projects
  • Brendan Abolivier's avatar
    2d3bd9aa
    Add a module callback to set username at registration (#11790) · 2d3bd9aa
    Brendan Abolivier authored
    
    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>
    2d3bd9aa
    History
    Add a module callback to set username at registration (#11790)
    Brendan Abolivier authored
    
    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>