Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Split account_threepid_handler into a msisdn and email versions #5928
We realized we could run into an issue where because Synapse can't support sending SMS yet, you may find yourself wanting to use Synapse to send password reset emails, but then can't support msisdn registration.
We need to split up account_threepid_handler into msisdn and email versions so that people can configure these things separately.
On the backend side, this will involve:
…erification (#5940) Fixes: #5751 Fixes: #5928 #5835 allowed Synapse to send registration emails to the user. Now we need to accept them and have it succeed the `m.login.email.identity` registration flow step. `account_threepid_handler` will also be switched from a `str` in the config file to a dictionary which contains entries for `msisdn` and `email`, each with their own `str`. This will let people use an external server to handle `msisdn` registration and password reset requests, while using Synapse for email-based things. And the `password_servlet` hack that was introduced in https://github.com/matrix-org/synapse/pull/5377/files#diff-b8464485d36f6f87caee3f4d82524213R189 to distinguish a registration call from a password reset call will be removed.