Repository navigation
First cut of the module - #1
Merged
Merged
Conversation
reivilibre
previously approved these changes
Mar 23, 2022
reivilibre
left a comment
Contributor
There was a problem hiding this comment.
Looks good to me, I assume you've tested it works, so the comment is really just a question about how it works (with perhaps a point that it might be nice to document it readily, as it seems not immediately obvious).
Contributor
Author
|
I've rewritten a bit of the module so it now uses the callback to matrix-org/synapse#12302, and binds assocs when they're verified on the HS rather than only on registration. |
babolivier
dismissed
reivilibre’s stale review
March 25, 2022 18:57
Code has changed quite a bit since the review
reivilibre
requested changes
Mar 31, 2022
reivilibre
left a comment
Contributor
There was a problem hiding this comment.
Looks fine otherwise, I think!
Co-authored-by: reivilibre <olivier@librepush.net>
reivilibre
approved these changes
Apr 5, 2022
…sydent into babolivier/init
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This work is happening in the context of the Tchap mainlining. In Tchap, when a user is registered (which always requires an email to be set), the email is automatically bound to a Sydent instance using the internal API (so that their email can be looked up immediately, and without having to go through additional manual validation).
This module implements this behaviour by using the
on_user_registrationaccount validity callback, as well as a module API method added in matrix-org/synapse#12195.The CI is expecting to fail since matrix-org/synapse#12195 hasn't made it into mainline CI yet, but it's all passing locally.