You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2023-08-16] [$1000] Web - The "Invalid Two Factor Authentication code" error from the 2FA page is also displayed on the contact methods page even without entering any code #23592
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorWeeklyKSv2
. Go to Settings > Security > Two-factor authentication.
2. Click on "Copy" and proceed to the next step.
3. Enter an incorrect number for Two Factor Authentication.
4. Now go to the Profile > Contact methods.
5. Add a new contact method.
6. Notice that the "Invalid Two Factor Authentication code" error from the 2FA page is displayed on the contact methods page without entering any code
Expected Result:
The "Invalid Two Factor Authentication code" error should not be displayed on the contact methods page when adding a new contact method
Actual Result:
The "Invalid Two Factor Authentication code" error from the 2FA page is also displayed on the contact methods page without entering any code
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Android / native
Android / Chrome
iOS / native
iOS / Safari
MacOS / Chrome / Safari
MacOS / Desktop
Version Number: 1.3.45.3 Reproducible in staging?: y Reproducible in production?: y If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers): Logs:https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos: Any additional supporting documentation
changed the title [-]Web - The "Invalid Two Factor Authentication code" error from the 2FA page is also displayed on the contact methods page even without entering any code[/-][+][$1000] Web - The "Invalid Two Factor Authentication code" error from the 2FA page is also displayed on the contact methods page even without entering any code[/+]on Aug 2, 2023
In tab 1, go to setting > security > Two-factor authentication, click on copy or download to go to the next step
Enter wrong magic code
In tab 2, go to profile page > contact method, and click on the second contact method that isn't verified
In tab 1, The error is cleared because we clear account message in BaseValidateCodeForm
Screencast.from.15-08-2023.16.53.45.webm
If it is a valid bug, I think we shouldn't show account error here instead of clear this error in BaseValidateCodeForm because when we verify the contact method, I don't think we have the case to return account error.
I personally don't think this is a valid bug, the two tabs situation is a very edge case, and either way they would have to re-enter the 2FA code on the setup pane anyway, so I think it's probably fine.
I'm not sure if we have a particular stance on this, but that's mine. I also posted on this related bug here
We already discussed this here and here before the PR
but this will happen regardless of where we do Session.clearAccountMessages()
If the contact or 2FA auth page has some errors and in a new tab we visit the contact page, the errors on the 2FA page will be cleared as well.
and landed on a conclusion that its fine
Yeah I was wondering about that, using clearAccountMessages() is pretty broad - I'm not sure it's intentional, per se, but I don't think it's something we need to be concerned about here since it's a pattern we're copying.
Also, we are doing the reverse i.e clearing errors on the 2FA page that would clear the error on contact verification page, this was even before the PR. I don't think this is a regression or a bug.
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorWeeklyKSv2
Activity
melvin-bot commentedon Jul 25, 2023
Triggered auto assignment to @alexpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Jul 25, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)huzaifa-99 commentedon Jul 25, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
We want the invalid 2FA code error msg to not appear on the contact methods page when the error was previously set by the security/2FA/Verify page
What is the root cause of that problem?
Unlike the security/2FA/Verify page, we are not clearing the 2FA error when we visit the contact methods verify page.
What changes do you think we should make in order to solve the problem?
We should clear the account errors when we visit the contacts method verify page, like this
What alternative solutions did you explore? (Optional)
N/A
alexpensify commentedon Jul 29, 2023
I ran out of time on Thursday and was OOO yesterday. I'll try to review it over the weekend.
alexpensify commentedon Aug 1, 2023
Not overdue - still on my testing lists
[-]Web - The "Invalid Two Factor Authentication code" error from the 2FA page is also displayed on the contact methods page even without entering any code[/-][+][$1000] Web - The "Invalid Two Factor Authentication code" error from the 2FA page is also displayed on the contact methods page even without entering any code[/+]melvin-bot commentedon Aug 2, 2023
Job added to Upwork: https://www.upwork.com/jobs/~017b2ef3498aa199c3
36 remaining items
dukenv0307 commentedon Aug 15, 2023
@dangrous @ArekChr Is this a valid bug
BaseValidateCodeFormScreencast.from.15-08-2023.16.53.45.webm
If it is a valid bug, I think we shouldn't show account error here instead of clear this error in
BaseValidateCodeFormbecause when we verify the contact method, I don't think we have the case to return account error.App/src/pages/settings/Profile/Contacts/ValidateCodeForm/BaseValidateCodeForm.js
Line 154 in 56f0b0f
dangrous commentedon Aug 16, 2023
I personally don't think this is a valid bug, the two tabs situation is a very edge case, and either way they would have to re-enter the 2FA code on the setup pane anyway, so I think it's probably fine.
I'm not sure if we have a particular stance on this, but that's mine. I also posted on this related bug here
alexpensify commentedon Aug 16, 2023
@dangrous do we need to hold the payment here because of regression or good to go with the next steps?
huzaifa-99 commentedon Aug 17, 2023
We already discussed this here and here before the PR
and landed on a conclusion that its fine
Also, we are doing the reverse i.e clearing errors on the 2FA page that would clear the error on contact verification page, this was even before the PR. I don't think this is a regression or a bug.
dangrous commentedon Aug 18, 2023
Yeah I think we don't need to hold/affect payment
alexpensify commentedon Aug 18, 2023
Thanks, I'll start working on the payment process.
alexpensify commentedon Aug 18, 2023
Here is the payment summary:
Upwork Job: https://www.upwork.com/jobs/~017b2ef3498aa199c3
*If applicable, the bonuses will be applied on the final payment
Extra Notes regarding payment: There is an urgency bonus here
ayazhussain79 commentedon Aug 18, 2023
@alexpensify Offer accepted, Thank you
alexpensify commentedon Aug 18, 2023
Offers have been sent out and I've completed the payment process for @ayazhussain79
huzaifa-99 commentedon Aug 18, 2023
Accepted, Thank @alexpensify
alexpensify commentedon Aug 21, 2023
I've completed the payment process in Upwork. Please confirm that you received it. Thanks!
huzaifa-99 commentedon Aug 21, 2023
@alexpensify I have received it. Thanks
alexpensify commentedon Aug 21, 2023
Ok, I need to create the regression test request and then can close out this GH
alexpensify commentedon Aug 24, 2023
Closing - the regression test GH has been created