Skip to content

Disallow international numbers in IdV process#1578

Merged
jmhooper merged 1 commit intomasterfrom
jmhooper-idv-flow-phone-formatter
Aug 7, 2017
Merged

Disallow international numbers in IdV process#1578
jmhooper merged 1 commit intomasterfrom
jmhooper-idv-flow-phone-formatter

Conversation

@jmhooper
Copy link
Contributor

Don't use international number for initial value in IdV phone form

Why: We don't allow the user to use an international number during identity verification, so we should not populate the form with an international number as the initial value

Format phone number of record as a US number

Why: Only US numbers can be used as the phone number of record. This commit changes the frontend JS so that the text fields only formats US numbers and prevents the user from typing an international number.

@jmhooper
Copy link
Contributor Author

This is waiting on messaging for international numbers described in https://github.com/18F/identity-private/issues/2261

@jmhooper jmhooper changed the title [Blocked] Disallow international numbers in IdV process [WIP] Disallow international numbers in IdV process Aug 4, 2017
@jmhooper
Copy link
Contributor Author

jmhooper commented Aug 4, 2017

Unblocked. Thank you @jeanninehunter and @mkhandekar

@jmhooper jmhooper changed the title [WIP] Disallow international numbers in IdV process Disallow international numbers in IdV process Aug 4, 2017
@jmhooper
Copy link
Contributor Author

jmhooper commented Aug 4, 2017

Just noticed Travis didn't like this one. Going back to WIP

@jmhooper jmhooper changed the title Disallow international numbers in IdV process [WIP] Disallow international numbers in IdV process Aug 4, 2017
@jmhooper jmhooper changed the title [WIP] Disallow international numbers in IdV process Disallow international numbers in IdV process Aug 4, 2017
@jmhooper
Copy link
Contributor Author

jmhooper commented Aug 4, 2017

Fixed the bug that broke this in CI. Marked ready for review again.

Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

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

LGTM

**Why**: Only US numbers can be used as the phone number of record. This
commit changes the frontend JS so that the text fields only formats US
numbers and prevents the user from typing an international number.

Don't use intl number for init value in IdV form

**Why**: We don't allow the user to use an international number during
identity verification, so we should not populate the form with an
international number as the initial value
@jmhooper jmhooper force-pushed the jmhooper-idv-flow-phone-formatter branch from ac7aa81 to aeca825 Compare August 7, 2017 14:14
@jmhooper jmhooper merged commit 10eb0cc into master Aug 7, 2017
@jmhooper jmhooper deleted the jmhooper-idv-flow-phone-formatter branch August 10, 2017 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants