-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Phone number input should not be shown if homeserver does not support it #9063
Comments
Hmm, can you share the relevant Synapse config for this HS? The phone input on registration should already be hidden after matrix-org/matrix-react-sdk#2551, which is included in v1.0.0 and later. |
@jryans sorry for the slow reply :P Would you be able to say which parts are relevant for the Synapse config? What I can see is that Riot is doing a
The response contains the following flows:
Synapse config for what I can think might be relevant:
|
Riot is showing the phone number field because you have at least one registration flow in the The Synapse code for deciding which fields to include is a bit complex... It would appear that currently the only way to remove the phone from all stages (and thus hide the field), is to set:
There's probably room for improving the way Synapse configuration works in this area. As for the phone input appearing in Settings after registration, it's true that Riot always shows this field. I don't believe there's a clear API currently for the HS / IS to suggest where certain 3PIDs will be accepted, so that's why the field is always shown. Maybe it would be good to spin that part out as a separate issue, since it may need spec work as well? |
@jaywink This makes me wonder: how has msisdn registration been disabled on the server in such a way that m.login.msisdn is still reported as a registration stage? |
I'm closing this after some debugging where the result was that the phone number not working in registration phase was due to custom configuration related to As suggested, the settings phone number field should be handled separately. Thanks all for the help figuring this out. |
Description
When creating an account for a homeserver that does not support phone based registration, the phone input is shown.
Filling a phone number and submitting brings an error which seems like could be avoided by exposing the capabilities of the homeserver and checking them as it is known at this stage.
Similarly, once signed up, the phone number input is visible in settings:
Our enthusiastic user is presented with disappointment:
Version information
Custom hosted Riot web v1.0.1 pointed to custom hosted Synapse v0.99.2.
The text was updated successfully, but these errors were encountered: