Skip to content

[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

Closed

Description

@kbecciv

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


Action Performed:

  1. Open account with 2FA enabled
  2. Go offline
  3. Go to Settings -> security -> Two-factor authentication
  4. "Disable Authentication" page will be shown
  5. Disable the 2FA
  6. Offline page with no action will be shown
  7. 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

Screen.Recording.2023-06-22.at.2.20.00.PM.1.mov
Recording.888.mp4

Expensify/Expensify Issue URL:
Issue reported by: abdulrahuman5196
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1687424270135549

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0164903c489572791c
  • Upwork Job ID: 1673598551156371456
  • Last Price Increase: 2023-06-27

Activity

  1. added
    Daily
    Bug
    on Jun 26, 2023
  2. melvin-bot commented on Jun 26, 2023

    @melvin-bot

    Triggered auto assignment to @bfitzexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

  3. melvin-bot commented on Jun 26, 2023

    @melvin-bot

    Bug0 Triage Checklist (Main S/O)

    • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
    • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
      • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
    • This bug is reproducible using the reproduction steps in the OP. S/O
      • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
      • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
    • This issue is filled out as thoroughly and clearly as possible
      • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
    • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync
  4. hungvu193 commented on Jun 26, 2023

    @hungvu193
    Contributor

    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.

    <FixedFooter style={[styles.flexGrow0]}>
    <Button
    success
    text={props.translate('common.buttonConfirm')}
    onPress={() => Navigation.navigate(ROUTES.SETTINGS_SECURITY)}
    />
    </FixedFooter>

    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 DisablePage here when we're offline.

    // we can also change the opacity of this button when offline.
                        <Button
                           isDisabled={props.network.isOffline}
                            success
                            text={props.translate('common.buttonConfirm')}
                            onPress={() => Navigation.navigate(ROUTES.SETTINGS_SECURITY)}
                        />
                    </FixedFooter>

    What alternative solutions did you explore? (Optional)

  5. melvin-bot commented on Jun 26, 2023

    @melvin-bot

    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.

    Feel free to drop a note in #expensify-open-source with any questions.

  6. added
    External
    on Jun 27, 2023
  7. 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
  8. melvin-bot commented on Jun 27, 2023

    @melvin-bot
  9. added
    Help Wanted
    on Jun 27, 2023
  10. melvin-bot commented on Jun 27, 2023

    @melvin-bot

    Current assignee @bfitzexpensify is eligible for the External assigner, not assigning anyone new.

  11. melvin-bot commented on Jun 27, 2023

    @melvin-bot

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

  12. Pujan92 commented on Jun 27, 2023

    @Pujan92
    Contributor

    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 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.

    Result
    Screen.Recording.2023-06-27.at.7.10.38.PM.mov
  13. 33 remaining items

  14. bfitzexpensify commented on Jul 24, 2023

    @bfitzexpensify
    Contributor

    Sure, moving this to monthly - @0xmiroslav, please comment here when you'd like me to issue payment.

  15. added and removed
    Daily
    on Jul 24, 2023
  16. chiragsalian commented on Aug 30, 2023

    @chiragsalian
    Contributor

    any update here @0xmiroslav?

  17. 0xmiroslav commented on Aug 31, 2023

    @0xmiroslav
    Contributor

    still in discussion. account accident happened yesterday

  18. bfitzexpensify commented on Oct 3, 2023

    @bfitzexpensify
    Contributor

    Guessing this is still being figured out @0xmiroslav?

  19. 0xmiroslav commented on Oct 4, 2023

    @0xmiroslav
    Contributor

    still on hold. Please close this for now. I am tracking myself

  20. chiragsalian commented on Oct 5, 2023

    @chiragsalian
    Contributor

    Cool, closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentBugExternalMonthly

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions