This repository has been archived by the owner on Apr 3, 2019. It is now read-only.
fix(email-first): Ensure "Mistyped email" links work as expected. #6067
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
If a relier specified an email for the email-first flow, users
that clicked on "Mistyped email" saw no visible change in the
screen.
In reality, there was a subtle change, the user was redirected
to
/
, but the redirected back to/signin
or/signup
.This happened because on the 2nd render, the index page saw
that the relier model contained an email address and redirected
back to where the user just was.
To get around this, before checking the email and redirecting,
clear the email from the relier model. The email is saved
into the formPrefill model since the email elements on
the next page have a
name
attribute, and that willbe used to prefill the email when the user comes back.
fixes #6033
@mozilla/fxa-devs - r?