Skip to content
This repository has been archived by the owner. It is now read-only.

fix(client): Canonicalize emails when going to /settings #4473

Merged

Conversation

@shane-tomlinson
Copy link
Member

@shane-tomlinson shane-tomlinson commented Nov 29, 2016

Any time account.sessionStatus is called, update the account's email
address with the address returned by the server. This forces the
server's canonicalized email address to be used instead of any
uncanonicalized addresses from before this PR.

This is used by base.js for views that require a valid session or
verification, such as settings.

fixes #4463

This builds on #4472 and should be reviewed afterwards.

A case not handled by this PR is a user that opens /signin with a cached email. Handling the case when the sessionToken was valid was easy, handling the case where the sessionToken was invalid was a big ball of mud, so I deferred it. Will open an issue about it.

@vladikoff - r?

@vladikoff
Copy link
Contributor

@vladikoff vladikoff commented Nov 29, 2016

Has conflicts...

Any time account.sessionStatus is called, update the account's email
address with the address returned by the server. This forces the
server's canonicalized email address to be used instead of any
uncanonicalized addresses from before this PR.

This is used by base.js for views that require a valid session or
verification, such as settings.

fixes #4463
@shane-tomlinson shane-tomlinson force-pushed the shane-tomlinson/issue-4463-canonical-email-signed-in-users branch from 591f769 to 6ac014b Nov 29, 2016
@shane-tomlinson
Copy link
Member Author

@shane-tomlinson shane-tomlinson commented Nov 29, 2016

@vladikoff - updated.

@vladikoff vladikoff merged commit 5901b2a into train-75 Nov 29, 2016
4 checks passed
4 checks passed
ci/circleci Your tests passed on CircleCI!
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
coverage/coveralls Coverage remained the same at 98.664%
Details
@vladikoff vladikoff deleted the shane-tomlinson/issue-4463-canonical-email-signed-in-users branch Nov 29, 2016
@rfk rfk added this to the FxA-0: quality milestone Dec 21, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants