Skip to content

Check response title for setPassword validate code failure#5406

Merged
marcaaron merged 1 commit into
mainfrom
joe-response-title
Sep 21, 2021
Merged

Check response title for setPassword validate code failure#5406
marcaaron merged 1 commit into
mainfrom
joe-response-title

Conversation

@Jag96

@Jag96 Jag96 commented Sep 21, 2021

Copy link
Copy Markdown
Contributor

cc @marcaaron

Details

This PR is a follow up to fix https://github.com/Expensify/App/pull/5398/files#diff-283c48b7349b0bf7aba66da8891bc8a9f9df70664bd06e7a875f56b19c6c02f9R275. We were checking the message instead of the title, so if the user clicks an expired or invalid validation link the error message won't be shown.

Tests/QA

  1. Click on an old validation link, or open a validation link with a nonsense validation code (I used http://localhost:8080/setpassword/2/asdfabc123 on dev)
  2. Set a new password and submit the form, confirm the error message shows

Tested On

  • Web
  • Mobile Web
  • Desktop
  • iOS
  • Android

Screenshots

image

@Jag96 Jag96 self-assigned this Sep 21, 2021
@Jag96
Jag96 requested a review from a team as a code owner September 21, 2021 22:16
@MelvinBot
MelvinBot requested review from Beamanator and removed request for a team September 21, 2021 22:17

@marcaaron marcaaron left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice one. Sorry I didn't test what would happen if we actually had a bad validate code :ohnothing:

@Jag96

Jag96 commented Sep 21, 2021

Copy link
Copy Markdown
Contributor Author

No worries, I should've added it to the list of tests as well 🚀

@marcaaron
marcaaron merged commit 9d464d5 into main Sep 21, 2021
@marcaaron
marcaaron deleted the joe-response-title branch September 21, 2021 23:36
@OSBotify

Copy link
Copy Markdown
Contributor

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to staging by @marcaaron in version: 1.1.0-3 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to production by @Jag96 in version: 1.1.1-8 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

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.

3 participants