Remove bind_email parameter from register_user#7336
Conversation
clokep
left a comment
There was a problem hiding this comment.
Looks OK. I think we need to think about changing the ModuleApi object a bit more?
|
|
||
| @defer.inlineCallbacks | ||
| def register(self, localpart, displayname=None, emails=[]): | ||
| def register(self, localpart, displayname=None): |
There was a problem hiding this comment.
We should probably note in the changelog that his changed (or leave it for backwards compatibility).
Do we know if any external modules called this with an iterable of emails?
There was a problem hiding this comment.
Aha! Good spot. Ok, I was under the impression that modules like matrix-synapse-ldap3 bound emails in another manner (through the check_3pid_auth module method).
But you're right!
Which probably makes this whole PR defunct I suppose.
There was a problem hiding this comment.
Ah, yeah looks like this is still used then. :)
|
Closing as this argument is still used by modules. Your editor may not show it though as it won't know about a separate codebase's method calls :) |
As far as I can tell, this was only used by the
bind_emailparameter which was removed in #5964.Emails added during registration still happen in
post_registration_actions:synapse/synapse/handlers/register.py
Lines 556 to 565 in 2d6d4fa