Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Phone number registration / login support v2 #1994

Merged
merged 4 commits into from
Mar 15, 2017

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented Mar 13, 2017

#1971 with fix for old clients

Presented in two parts (commits)

Only offer msisdn flows if the x_show_msisdn option is given.
# Android <=0.6.9 have fallen below an acceptable threshold, this
# parameter should go away and we should always advertise msisdn flows.
show_msisdn = False
print body
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No print please

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, thanks

flows += [
[LoginType.MSISDN, LoginType.RECAPTCHA],
[LoginType.MSISDN, LoginType.EMAIL_IDENTITY, LoginType.RECAPTCHA],
]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally we prefer flows.extend([..]) rather than concatenating two lists, but meh

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah interesting, I wrote that first but then sort of concluded the opposite.

@erikjohnston erikjohnston merged commit 7827251 into develop Mar 15, 2017
@erikjohnston
Copy link
Member

lgtm

@dbkr dbkr deleted the dbkr/msisdn_signin_2 branch October 17, 2017 12:48
anoadragon453 added a commit that referenced this pull request Jun 12, 2020
anoadragon453 added a commit that referenced this pull request Jun 15, 2020
The spec [states](https://matrix.org/docs/spec/client_server/r0.6.1#phone-number) that `m.id.phone` requires the field `country` and `phone`.

In Synapse, we've been enforcing `country` and `number`.

I am not currently sure whether this affects any client implementations.

This issue was introduced in #1994.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants