Skip to content

Fix 500 when trying to display invalid phone numbers#6319

Merged
mitchellhenke merged 2 commits intomainfrom
mitchellhenke/masked-phone-500
May 6, 2022
Merged

Fix 500 when trying to display invalid phone numbers#6319
mitchellhenke merged 2 commits intomainfrom
mitchellhenke/masked-phone-500

Conversation

@mitchellhenke
Copy link
Contributor

I suspect this is limited to people manually editing the form to specify a different (invalid) ID, but it caused some 500s (NR)

This PR adds validation and additional tests around this case. I'm not overly worried about getting the redirect exactly right in case where we redirect back to the homepage. The user in question could be signing up or authenticating, but either way something funky is going on 🙂

Mitchell Henke added 2 commits May 6, 2022 11:52
changelog: Bug Fixes, Authentication, Fix 500 when phone ID is invalid
Copy link
Contributor

@aduth aduth left a comment

Choose a reason for hiding this comment

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

👍

@mitchellhenke mitchellhenke merged commit 6d4fc07 into main May 6, 2022
@mitchellhenke mitchellhenke deleted the mitchellhenke/masked-phone-500 branch May 6, 2022 18:32
mitchellhenke pushed a commit that referenced this pull request May 6, 2022
* add failing specs

* Do not attempt to display phone if it is invalid

changelog: Bug Fixes, Authentication, Fix 500 when phone ID is invalid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants