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

[$250] Contact method - Main email doesn't get validated after inserting magic code #48527

Open
2 of 6 tasks
IuliiaHerets opened this issue Sep 4, 2024 · 25 comments
Open
2 of 6 tasks
Assignees
Labels
Fire-Cleanup Something needs to be done after a fire Internal Requires API changes or must be handled by Expensify staff Weekly KSv2

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Sep 4, 2024

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


Version Number: 9.0.28-0
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers): testpayment935@gmail.com
Issue reported by: Applause Internal Team

Action Performed:

  1. Navigate to staging.new.expensify.com
  2. Sign in with a new gmail account
  3. Go to contact method
  4. Click on New contact method
  5. Add a new account
  6. After being navigated to validate main email account enter magic code and validate it

Expected Result:

After validating the main email account the GBR should disappear from the main email and the main email should now be considered as validated

Actual Result:

Main gmail account still considered to be unvalidated after getting magic code and validated using it

Workaround:

Unknown

Platforms:

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6592205_1725395703195.Screen_Recording_20240903_233032_Chrome.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021831356985561814829
  • Upwork Job ID: 1831356985561814829
  • Last Price Increase: 2024-09-04
Issue OwnerCurrent Issue Owner: @mountiny
@IuliiaHerets IuliiaHerets added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Sep 4, 2024
Copy link

melvin-bot bot commented Sep 4, 2024

Triggered auto assignment to @lschurr (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@IuliiaHerets
Copy link
Author

@lschurr FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

@NJ-2020
Copy link
Contributor

NJ-2020 commented Sep 4, 2024

Proposal

Please re-state the problem that we are trying to solve in this issue.

Contact method - Main email doesn't get validated after inserting magic code

What is the root cause of that problem?

Right here we return exit from the function if we have a pending contact meaning adding new contact

if (!!pendingContact?.contactMethod && isValidatingAction) {
User.addNewContactMethod(pendingContact?.contactMethod, validateCode);
return;
}
User.validateSecondaryLogin(loginList, contactMethod, validateCode);

What changes do you think we should make in order to solve the problem?

We can just remove the return statement

What alternative solutions did you explore? (Optional)

N/A

@lschurr lschurr added the External Added to denote the issue can be worked on by a contributor label Sep 4, 2024
Copy link

melvin-bot bot commented Sep 4, 2024

Job added to Upwork: https://www.upwork.com/jobs/~021831356985561814829

@melvin-bot melvin-bot bot changed the title Contact method - Main email doesn't get validated after inserting magic code [$250] Contact method - Main email doesn't get validated after inserting magic code Sep 4, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 4, 2024
Copy link

melvin-bot bot commented Sep 4, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @c3024 (External)

@lschurr
Copy link
Contributor

lschurr commented Sep 4, 2024

Hi @c3024! Could you review the proposal here when you get a chance?

@mkzie2
Copy link
Contributor

mkzie2 commented Sep 4, 2024

Proposal

Please re-state the problem that we are trying to solve in this issue.

Main gmail account still considered to be unvalidated after getting magic code and validated using it

What is the root cause of that problem?

I don't think this is a bug, in Step 6, we're validating the ACTION to add secondary contact, not the (main) contact itself. It's like KYC/proving you're the one who made the action before actually verifying the contact method.

I think the problem lies in the validate code prompt text that confused users, even the QA and contributors. We need to update it.

What changes do you think we should make in order to solve the problem?

Take Google for example, it just simply shows To continue, first verify it’s you:

Screenshot 2024-09-05 at 01 15 42

To do that, we can modify the message in ValidateContactActionPage:

messages={{0: translate('contacts.enterMagicCode', {contactMethod: account?.primaryLogin ?? ''})}}

@mountiny mountiny self-assigned this Sep 7, 2024
@mountiny mountiny added Internal Requires API changes or must be handled by Expensify staff and removed External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors labels Sep 7, 2024
@mountiny
Copy link
Contributor

mountiny commented Sep 7, 2024

Their will require backend change to work

@mountiny mountiny added Weekly KSv2 and removed Daily KSv2 labels Sep 9, 2024
@melvin-bot melvin-bot bot removed the Overdue label Sep 9, 2024
@mountiny
Copy link
Contributor

mountiny commented Sep 9, 2024

MAking this weekly as its not that critical

Copy link

melvin-bot bot commented Sep 9, 2024

@lschurr, @mountiny, @c3024 Huh... This is 4 days overdue. Who can take care of this?

@mountiny
Copy link
Contributor

mountiny commented Sep 9, 2024

This is not overdue

@trjExpensify
Copy link
Contributor

What changes do we need to make here?

If you're adding a secondary login with an unvalidated primary, and we prompt to "prove it's you" by entering a magic code, we should validate the primary?

@melvin-bot melvin-bot bot removed the Overdue label Oct 1, 2024
@melvin-bot melvin-bot bot added the Overdue label Oct 9, 2024
@lschurr lschurr removed the Bug Something is broken. Auto assigns a BugZero manager. label Oct 10, 2024
@lschurr lschurr removed their assignment Oct 10, 2024
@melvin-bot melvin-bot bot removed the Overdue label Oct 10, 2024
@mountiny
Copy link
Contributor

focusing on higher priorities still

@melvin-bot melvin-bot bot added the Overdue label Oct 21, 2024
@mountiny
Copy link
Contributor

low

@melvin-bot melvin-bot bot removed the Overdue label Oct 22, 2024
@melvin-bot melvin-bot bot added the Overdue label Oct 30, 2024
@mountiny
Copy link
Contributor

same

@melvin-bot melvin-bot bot removed the Overdue label Oct 31, 2024
@melvin-bot melvin-bot bot added the Overdue label Nov 11, 2024
@mountiny
Copy link
Contributor

@c3024, could you please retest if this is still happening? I think we might have made some changes to this flow

@melvin-bot melvin-bot bot removed the Overdue label Nov 11, 2024
@c3024
Copy link
Contributor

c3024 commented Nov 11, 2024

@mountiny

Still happening.

  1. GBR remains.
  2. Clicking on the contact method, even after verifying once through "Add Contact Method" flow, asks for magic code.
primaryMagicCode.mp4

@mountiny
Copy link
Contributor

@c3024 thanks for verifying

@kavimuru
Copy link

GBR is not displayed anymore as per this PR #49004

Screen_Recording_20241111_172256_Chrome.mp4

@c3024
Copy link
Contributor

c3024 commented Nov 12, 2024

I am still seeing the GBR now on staging. 🤔

Screen.Recording.2024-11-12.at.7.45.52.PM.mov

The GBR is not there on signup but some data from backend seems to make the GBR appear after validating the primary account through the "Add secondary contact method" flow.

@melvin-bot melvin-bot bot added the Overdue label Nov 20, 2024
@mountiny
Copy link
Contributor

low

@melvin-bot melvin-bot bot removed the Overdue label Nov 20, 2024
@garrettmknight garrettmknight moved this to Bugs and Follow Up Issues in [#whatsnext] #expense Nov 26, 2024
@melvin-bot melvin-bot bot added the Overdue label Nov 29, 2024
@mountiny
Copy link
Contributor

still in progress, been focusing on app deploy this week

@melvin-bot melvin-bot bot removed the Overdue label Nov 30, 2024
@melvin-bot melvin-bot bot added the Overdue label Dec 9, 2024
@mountiny
Copy link
Contributor

low

@melvin-bot melvin-bot bot removed the Overdue label Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fire-Cleanup Something needs to be done after a fire Internal Requires API changes or must be handled by Expensify staff Weekly KSv2
Projects
Status: Bugs and Follow Up Issues
Development

No branches or pull requests

8 participants