-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jetpack Connection: fix sign-up as a different user #78036
Conversation
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: App Entrypoints (~342 bytes added 📈 [gzipped])
Common code that is always downloaded and parsed every time the app is loaded, no matter which route is used. Sections (~21681 bytes added 📈 [gzipped])
Sections contain code specific for a given set of routes. Is downloaded and parsed only when a particular route is navigated to. Async-loaded Components (~830 bytes added 📈 [gzipped])
React components that are loaded lazily, when a certain part of UI is displayed for the first time. Legend What is parsed and gzip size?Parsed Size: Uncompressed size of the JS and CSS files. This much code needs to be parsed and stored in memory. Generated by performance advisor bot at iscalypsofastyet.com. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested everything as suggested and it works as expected.
I did notice a small difference between Calypso Green and WP.com form (Green has additional links for creating a new account, logging in via the app...), but that doesn't seem to make any difference for this scenario.
Co-authored-by: Omar Alshaker <omar@omaralshaker.com> Co-authored-by: Paulo Trentin <paulo@paulotrentin.com.br> Co-authored-by: Gabriel Demichelis <gabrieldemichelis@gmail.com> Co-authored-by: Philip Jackson <p-jackson@live.com> Co-authored-by: Paulo Cruz <paulo.cruz@automattic.com> Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com> Co-authored-by: Luis Felipe Zaguini <26530524+zaguiini@users.noreply.github.com> Co-authored-by: Payton Swick <payton@foolord.com> Co-authored-by: Kosta <heavyweight@users.noreply.github.com> Co-authored-by: Erick Danzer <edanzer@gmail.com> Co-authored-by: Nicholas Sakaimbo <nsakaimbo@users.noreply.github.com> Co-authored-by: Paulo Marcos Trentin <paulo@paulotrentin.com.br> Co-authored-by: Sergey Mitroshin <sergeymitr@gmail.com> Co-authored-by: Candy Tsai <candy02058912@gmail.com> Co-authored-by: Daniel Bachhuber <daniel.bachhuber@automattic.com> Co-authored-by: Wojtek Naruniec <wojtek@naruniec.me> Co-authored-by: Aneesh Devasthale <aneeshd16@users.noreply.github.com> Co-authored-by: Miguel San Segundo <1881481+miksansegundo@users.noreply.github.com> Co-authored-by: Griffith Chen <griffith.chen@automattic.com> Co-authored-by: Paul Bunkham <paul@dobit.co.uk> Co-authored-by: Bogomil Stoynov <bogomil.stoynov@automattic.com> Co-authored-by: Maciej Grabowski <mashikag@users.noreply.github.com> Co-authored-by: Louis Laugesen <louis.laugesen@gmail.com> Co-authored-by: timur987 <115007291+timur987@users.noreply.github.com> Fix track events for buttons (#78759) fix sign-up as a different user (#78036) fixes (#78734)
* initial changes for bulk domain transfer redesign * BulkDomainTransfer: conditionally show delete * BulkDomainTransfer: display number of domains to be added * BulkDomainTransfer: fix styles * Progress bar is back (#78835) * Bulk Domain Flow: Intro step (#78837) * Unlock icon * Learn more and some styling * Font family * Padding and button width * Localize url * Intentscreen without absolute positioning * Padding mobile for intents * Fix svg and accurate margin * Fix select item width * Padding in flow * Overwrite css * Missing cleanup * Bulk Domain Flow: Improvements on styling and layout (#78847) Co-authored-by: Omar Alshaker <omar@omaralshaker.com> Co-authored-by: Paulo Trentin <paulo@paulotrentin.com.br> Co-authored-by: Gabriel Demichelis <gabrieldemichelis@gmail.com> Co-authored-by: Philip Jackson <p-jackson@live.com> Co-authored-by: Paulo Cruz <paulo.cruz@automattic.com> Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com> Co-authored-by: Luis Felipe Zaguini <26530524+zaguiini@users.noreply.github.com> Co-authored-by: Payton Swick <payton@foolord.com> Co-authored-by: Kosta <heavyweight@users.noreply.github.com> Co-authored-by: Erick Danzer <edanzer@gmail.com> Co-authored-by: Nicholas Sakaimbo <nsakaimbo@users.noreply.github.com> Co-authored-by: Paulo Marcos Trentin <paulo@paulotrentin.com.br> Co-authored-by: Sergey Mitroshin <sergeymitr@gmail.com> Co-authored-by: Candy Tsai <candy02058912@gmail.com> Co-authored-by: Daniel Bachhuber <daniel.bachhuber@automattic.com> Co-authored-by: Wojtek Naruniec <wojtek@naruniec.me> Co-authored-by: Aneesh Devasthale <aneeshd16@users.noreply.github.com> Co-authored-by: Miguel San Segundo <1881481+miksansegundo@users.noreply.github.com> Co-authored-by: Griffith Chen <griffith.chen@automattic.com> Co-authored-by: Paul Bunkham <paul@dobit.co.uk> Co-authored-by: Bogomil Stoynov <bogomil.stoynov@automattic.com> Co-authored-by: Maciej Grabowski <mashikag@users.noreply.github.com> Co-authored-by: Louis Laugesen <louis.laugesen@gmail.com> Co-authored-by: timur987 <115007291+timur987@users.noreply.github.com> Fix track events for buttons (#78759) fix sign-up as a different user (#78036) fixes (#78734) * Update back button location on domain input screen * Adding styling changes * Updating styling * Deleting backup component and unused things --------- Co-authored-by: heavyweight <kpapazov@gmail.com> Co-authored-by: Emanuele Buccelli <escapemanuele@gmail.com> Co-authored-by: Renan Carvalho <renan.carvalho@automattic.com>
Proposed Changes
During Jetpack connection flow, logged-in WPCOM users see the "Sign in as a different user" button, where users can enter a username or an email
If the entered email is not registered and you intend to register, you get redirected to the "My Home" page of your default site.
This happens because the form emails the user a "magic link" and redirects them to the "Magic link send" page. However, that page cannot be displayed as the user is still logged in under the old WPCOM account, so they get redirected to the homepage instead.
This PR will logout users as soon as they click "Sign in as a different user" button, so their other WPCOM account won't interfere.
1191179647901802-as-1203666065057524
p8oabR-11U-p2#comment-6947
Testing Instructions
Disable all cookie protection in browser settings, otherwise the flow will not work due to test/live domain discrepancies in API requests.
wordpress.com
with the*.calypso.live
URL that got generated by "Calypso Live" link. The page should look the same.https://wordpress.com/
because the "Calypso Live" doesn't seem to have magic link emails enabled. There are no changes on that page.Don't forget to enable back the cookie protection settings!
Pre-merge Checklist