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-07-17] [$1000] 2FA "Disable Authentication" page comes up again if we navigate back to the page in Offline mode #21568
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 contributorMonthlyKSv2
Go to Settings -> security -> Two-factor authentication
"Disable Authentication" page will be shown
Disable the 2FA
Offline page with no action will be shown
Close settings and come back to same page
Expected Result:
Offline page with no action should be shown
Actual Result:
"Disable Authentication" page will be shown
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.32.5 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
Please re-state the problem that we are trying to solve in this issue.
2FA "Disable Authentication" page comes up again if we navigate back to the page in Offline mode
What is the root cause of that problem?
We are allowing user to press "Disable 2FA" even when they're offline, but this feature required internet connection, so after press that button you are navigated to Setting page then you're blocked by the UI. Later, when you pressed back you're navigated to DisablePage, you still see "Disable Authentication" page because you didn't disable 2FA yet.
What changes do you think we should make in order to solve the problem?
Because this feature require internet connection, we should disable the button inside DisablePagehere when we're offline.
// we can also change the opacity of this button when offline.<ButtonisDisabled={props.network.isOffline}successtext={props.translate('common.buttonConfirm')}onPress={()=>Navigation.navigate(ROUTES.SETTINGS_SECURITY)}/></FixedFooter>
What alternative solutions did you explore? (Optional)
Looks like something related to react-navigation may have been mentioned in this issue discussion.
As a reminder, please make sure that all proposals are not workarounds and that any and all attempt to fix the issue holistically have been made before proceeding with a solution. Proposals to change our DeprecatedCustomActions.js files should not be accepted.
changed the title [-]2FA "Disable Authentication" page comes up again if we navigate back to the page in Offline mode[/-][+][$1000] 2FA "Disable Authentication" page comes up again if we navigate back to the page in Offline mode[/+]on Jun 27, 2023
Please re-state the problem that we are trying to solve in this issue.
2FA "Disable Authentication" page comes up again if we navigate back to the page in Offline mode
What is the root cause of that problem?
As we are not blocking the View when the user is offline causing the issue.
What changes do you think we should make in order to solve the problem?
We should wrap the ScrollView with the FullPageOfflineBlockingView component, which will show the offline blocking View to the user and not allow to disabling the 2FA in offline mode.
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 contributorMonthlyKSv2
Activity
melvin-bot commentedon Jun 26, 2023
Triggered auto assignment to @bfitzexpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Jun 26, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)hungvu193 commentedon Jun 26, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
2FA "Disable Authentication" page comes up again if we navigate back to the page in Offline mode
What is the root cause of that problem?
We are allowing user to press "Disable 2FA" even when they're offline, but this feature required internet connection, so after press that button you are navigated to Setting page then you're blocked by the UI. Later, when you pressed back you're navigated to DisablePage, you still see "Disable Authentication" page because you didn't disable 2FA yet.
App/src/pages/settings/Security/TwoFactorAuth/DisablePage.js
Lines 42 to 48 in 1e308ca
What changes do you think we should make in order to solve the problem?
Because this feature require internet connection, we should disable the button inside
DisablePagehere when we're offline.What alternative solutions did you explore? (Optional)
melvin-bot commentedon Jun 26, 2023
Looks like something related to
react-navigationmay have been mentioned in this issue discussion.As a reminder, please make sure that all proposals are not workarounds and that any and all attempt to fix the issue holistically have been made before proceeding with a solution. Proposals to change our
DeprecatedCustomActions.jsfiles should not be accepted.Feel free to drop a note in #expensify-open-source with any questions.
[-]2FA "Disable Authentication" page comes up again if we navigate back to the page in Offline mode[/-][+][$1000] 2FA "Disable Authentication" page comes up again if we navigate back to the page in Offline mode[/+]melvin-bot commentedon Jun 27, 2023
Job added to Upwork: https://www.upwork.com/jobs/~0164903c489572791c
melvin-bot commentedon Jun 27, 2023
Current assignee @bfitzexpensify is eligible for the External assigner, not assigning anyone new.
melvin-bot commentedon Jun 27, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @0xmiroslav (
External)Pujan92 commentedon Jun 27, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
2FA "Disable Authentication" page comes up again if we navigate back to the page in Offline mode
What is the root cause of that problem?
As we are not blocking the View when the user is offline causing the issue.
What changes do you think we should make in order to solve the problem?
We should wrap the
ScrollViewwith theFullPageOfflineBlockingViewcomponent, which will show the offline blocking View to the user and not allow to disabling the 2FA in offline mode.App/src/pages/settings/Security/TwoFactorAuth/IsEnabledPage.js
Line 26 in 9604ac7
Result
Screen.Recording.2023-06-27.at.7.10.38.PM.mov
33 remaining items
bfitzexpensify commentedon Jul 24, 2023
Sure, moving this to monthly - @0xmiroslav, please comment here when you'd like me to issue payment.
chiragsalian commentedon Aug 30, 2023
any update here @0xmiroslav?
0xmiroslav commentedon Aug 31, 2023
still in discussion. account accident happened yesterday
bfitzexpensify commentedon Oct 3, 2023
Guessing this is still being figured out @0xmiroslav?
0xmiroslav commentedon Oct 4, 2023
still on hold. Please close this for now. I am tracking myself
chiragsalian commentedon Oct 5, 2023
Cool, closing.