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 App#20404] 2 factor authentiaction code dissappear when switch to small screen #20611
Go to Setting--> Security --> Two factor authentication
Observe Recovery codes appear
Resize the window to mobile view
Expected Result:
Recovery codes still display
Actual Result:
Recovery codes disappear
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
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.26-1 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.
Two factor auth code disappear when change the screen size
What is the root cause of that problem?
When users press Two factor authentication in Security page, we call API EnableTwoFactorAuth to fetch recoveryCodes and show it in TwoFactorAuthentication page.
In this page, if users change the screen size from large to small, the modal will be unmounted then mounted again, that make this function is called
changed the title [-] 2 factor authentiaction code dissappear when switch to small screen[/-][+][HOLD] 2 factor authentiaction code dissappear when switch to small screen[/+]on Jun 12, 2023
Activity
melvin-bot commentedon Jun 12, 2023
Triggered auto assignment to @MitchExpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Jun 12, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)kavimuru commentedon Jun 12, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Two factor auth code disappear when change the screen size
What is the root cause of that problem?
When users press
Two factor authenticationin Security page, we call APIEnableTwoFactorAuthto fetchrecoveryCodesand show it in TwoFactorAuthentication page.In this page, if users change the screen size from large to small, the modal will be unmounted then mounted again, that make this function is called
App/src/pages/settings/Security/TwoFactorAuth/CodesPage.js
Line 54 in 79f18ec
So we clear
recoveryCodeswithout the logic to fetch it againWhat changes do you think we should make in order to solve the problem?
We should move this function
Session.toggleTwoFactorAuth(true);from SecuritySettingsPage to below this lineApp/src/pages/settings/Security/TwoFactorAuth/CodesPage.js
Line 52 in 79f18ec
like what
DisablePagecomponent did withSession.toggleTwoFactorAuth(false);So when the component is mounted, we can fetch
recoveryCodesagainkushu7 commentedon Jun 12, 2023
Related to :
#20404
#20522
roryabraham commentedon Jun 12, 2023
Thanks for flagging that @kushu7. Let's put this on HOLD for #20404
[-] 2 factor authentiaction code dissappear when switch to small screen[/-][+][HOLD] 2 factor authentiaction code dissappear when switch to small screen[/+]MitchExpensify commentedon Jun 13, 2023
Switching to weekly while on hold 👍
MitchExpensify commentedon Jun 21, 2023
On hold
13 remaining items
mountiny commentedon Jul 25, 2023
It does, that PR should resolve this issue 🤝
MitchExpensify commentedon Jul 25, 2023
🤝
MitchExpensify commentedon Aug 9, 2023
Still on hold for #20404
MitchExpensify commentedon Aug 21, 2023
Same
MitchExpensify commentedon Aug 30, 2023
Same
MitchExpensify commentedon Sep 13, 2023
Whoop! This was resolved in #20404