Skip to content
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

Account validation : Error message to check email for a new link does not appear when pasting same link in new browser #7425

Closed
kavimuru opened this issue Jan 26, 2022 · 21 comments
Assignees
Labels
Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Improvement Item broken or needs improvement.

Comments

@kavimuru
Copy link

kavimuru commented Jan 26, 2022

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Issue was found when executing #6587

Action Performed:

  1. Create a new account
  2. Click the magic sign in link, and get routed to password set up page.
  3. Copy the unique URL at the top of the password set up page.
  4. Open a new incognito browser.
  5. Paste URL link into incognito session, and see password page load again
    (this URL shouldn't show the password set up page after it's viewed once already, right?)

Expected Result:

The form is replaced by an error message to check email for a new link and the user has been navigated to the root of the app.

Actual Result:

User are able to view their magic sign in link more than once (i.e. in a normal browser and then in an incognito browser right afterwards).

Platform:

Where is this issue occurring?

  • Web

Version Number: 1.1.33 - 2
Reproducible in staging?: Yes
Reproducible in production?: Yes
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:

Recording.162.mp4

Expensify/Expensify Issue URL:
Issue reported by: Applause
Slack conversation:

View all open jobs on GitHub

@MelvinBot
Copy link

Triggered auto assignment to @Gonals (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@anthony-hull
Copy link
Contributor

It looks like the validateEmail API call isn't being made. And therefore the magic token in the URL is still valid and can be used to set the password.

@anthony-hull
Copy link
Contributor

I noticed that Onyx is now using index DB and not local storage for the keys.

I emptied my cookies and local storage and the index DB and re-ran these steps and this issue goes away.

Does this fix it for you as well @kavimuru?

Maybe there is a problem with the migration where stale keys are present from the two implementations previously and then currently running on the client?

@kavimuru
Copy link
Author

kavimuru commented Jan 27, 2022

@anthony-hull Now I see the error message after I setup password. Not when I paste the link in incognito.

Recording.169.mp4

Now I see the error message after I setup password. Not when I paste the link in incognito.

@Gonals Gonals added Weekly KSv2 External Added to denote the issue can be worked on by a contributor and removed Daily KSv2 labels Jan 27, 2022
@MelvinBot
Copy link

Triggered auto assignment to @michaelhaxhiu (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

@MelvinBot MelvinBot added Daily KSv2 and removed Weekly KSv2 labels Jan 27, 2022
@Gonals Gonals added the Improvement Item broken or needs improvement. label Jan 27, 2022
@Gonals
Copy link
Contributor

Gonals commented Jan 27, 2022

Setting it as external for now, but there's still a bit of discussion to decide whether this is an actual bug.

@Gonals Gonals removed their assignment Jan 27, 2022
@michaelhaxhiu
Copy link
Contributor

Hmmm so if I'm following correctly, the user is able to access the password reset link twice? And it should expire after the first time it's visited?

Is that right or am I not following correctly, @kavimuru ?

@MelvinBot MelvinBot added Overdue and removed Overdue labels Feb 1, 2022
@mvtglobally
Copy link

@michaelhaxhiu , you are right. Original issue is about ability to access same password setup link twice

@michaelhaxhiu
Copy link
Contributor

@kavimuru I have another follow up question on the Expected Result:

The form is replaced by an error message to check email for a new link

Is this a real page we have today? Or are we requesting that we create a new page that shows this message?

@MelvinBot
Copy link

@michaelhaxhiu 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

2 similar comments
@MelvinBot
Copy link

@michaelhaxhiu 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

@MelvinBot
Copy link

@michaelhaxhiu 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

@MelvinBot
Copy link

@michaelhaxhiu Still overdue 6 days?! Let's take care of this!

3 similar comments
@MelvinBot
Copy link

@michaelhaxhiu Still overdue 6 days?! Let's take care of this!

@MelvinBot
Copy link

@michaelhaxhiu Still overdue 6 days?! Let's take care of this!

@MelvinBot
Copy link

@michaelhaxhiu Still overdue 6 days?! Let's take care of this!

@MelvinBot
Copy link

@michaelhaxhiu 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

2 similar comments
@MelvinBot
Copy link

@michaelhaxhiu 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

@MelvinBot
Copy link

@michaelhaxhiu 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

@michaelhaxhiu
Copy link
Contributor

@kavimuru still waiting on a response to the question above, if you have a moment! I'm going to close this GH until we follow up on that, as I'm not sure this is a candid bug yet.

When I try to reproduce this with my test accounts, it seems you can open the magic link (i.e. unique URL) in as many tabs or incognitos as you want. The link only expires (i.e. you cannot access the URL anymore) after you actually submit the new password into the form.

image

@botify
Copy link

botify commented Feb 15, 2022

@michaelhaxhiu Be sure to fill out the Contact List!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Improvement Item broken or needs improvement.
Projects
None yet
Development

No branches or pull requests

7 participants