-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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] User validation –User logging out when validate account in NewDot that was created in OldDot #41330
Comments
Triggered auto assignment to @sonialiap ( |
@sonialiap 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 |
I tried this, and did not receive any verification code at all with humanitiesclinic+exp@gmail.com, despite clicking on resend multiple times. |
📣 @humanitiesclinic! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
Job added to Upwork: https://www.upwork.com/jobs/~0126755b0189ef4aa2 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @c3024 ( |
@sonialiap, @c3024 Huh... This is 4 days overdue. Who can take care of this? |
Looking for proposals |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@sonialiap, @c3024 Huh... This is 4 days overdue. Who can take care of this? |
@sonialiap @c3024 this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
looking for proposals, will retest later this week |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Waiting for proposals. |
This was unfortunately reverted here #46846 . Reason here #46723. I think this seems be one of the cases of "You might not need an Effect" we missed. 😃 Instead of using
something like this onPress={() => {Navigation.navigate(ROUTES.SETTINGS_CONTACT_METHOD_DETAILS.getRoute(partnerUserID));
if (!login?.validatedDate) {
User.requestContactMethodValidateCode(loginName);
}
}}
or have an empty dependency array for the |
@sonialiap, @teneeto, @narefyev91, @c3024 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Ok I can take a look again. |
Triggered auto assignment to @johncschuster ( |
@johncschuster I'm OOO Aug 19-30, adding leave buddy. |
Tagging all involved: @marcaaron, @trjExpensify, @jasperhuangg, and @thienlnam in issue #46723 and the revert #46846 of the earlier PR #45395 for this issue. Can you please clarify this? When we add a contact method, the backend sends an email with a validation code even before the user visits the validation code form. If the user doesn't verify immediately, and later clicks on this secondary contact method, they are directed to the validation code form. However, no new magic code is sent immediately; it is only sent after the user clicks on the "Didn't receive a magic code" link, as described in the Actual Result of this issue.
What should be the expected behaviour here?
I think option (2) is better because adding a secondary contact method only takes the user to the Contact Methods page. The user needs to click on a contact method to go to the validation form. Therefore, on this event handler, we can request the code with Thanks! |
For clarity and not conflating two different cases, let's lay them out: Case 1: Signed-up, hasn't validated the primary login yet.
Case 2: Adds a secondary login to an existing account
So in case 2 when adding a secondary login, the bug here was that we were sending two magic code emails in addition, as a result of the change that was reverted: |
Thanks, @trjExpensify. So, I think this should be the expected behaviour. Can you please check if this is correct? Case 1:
Case 2:
|
Case 1, yup! Case 2, not quite. I think we should:
That way, we 1) aren't sending additional magic code emails and 2) we aren't asking the user to click the unvalidated secondary login to validate it right after adding it which would cause us to fire another one off like case 1. Does that make sense? CC: @Expensify/design |
@johncschuster back from OOO, releasing you from buddy role :D |
@c3024 we have clarification from Tom for the expected behavior. Is the next step to implement and push a PR? |
@sonialiap, O yes, I already did a push for that change, but I am working a way around this comment: #47772 (comment) We should push a final fix today. |
There have been some changes in these flows since our last discussion. Now, if we want to add a secondary contact, we need to re-validate our primary login before adding the secondary contact. As it stands, this validation page is identical to the usual first-time code verification page. The flow for case 2 will be now as follows:
Should we also update the text on the primary contact validation page? |
Ah, nice catch on changes in this flow to verify access to the primary login. I guess that might changes things a bit.
For the benefit of the discussion and design input, can you add a video of this flow so we can see the problem it presents please? Thanks! |
@c3024 @trjExpensify how do we plan to proceed with this? I'm waiting for your lead 😌. |
Hoping @c3024 can provide us a video of the current behaviour, so we can discuss those next steps.
|
on it. |
I'm sorry for not getting back to you sooner. This should be the current state for the secondary contact method. Screen.Recording.2024-09-13.at.10.22.54.mov |
The earlier PR was reverted because of this flow after addition of secondary contact
This flow still remains with this PR. Here is the video. magicCodeSentWhenAddingSecondaryContact.mp4We need to redirect the user not to ContactMethodsPage but to the validate code page to use the code immediately received in Step 1. |
More straightforward to follow now, 100% get you. I will add a fix and push back. Thanks @c3024 |
@c3024 can you confirm this is the expected flow? Screen.Recording.2024-09-17.at.10.38.58.mov |
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: 1.4.68-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4524500
Email or phone of affected tester (no customers): ponikarchuks+830424@gmail.com
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
The account is validated
Actual Result:
User logging out when try to validate account in NewDot that was created in OldDot. On step 6 User receive a magic code only after resend it
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6466569_1714482054776.validate_account_in_NewDot.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: