-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
fix: 2FA bug fixes #19260
Merged
MonilBhavsar
merged 17 commits into
Expensify:main
from
BeeMargarida:fix/19187-2fa_fixes
Jun 2, 2023
Merged
fix: 2FA bug fixes #19260
Changes from 12 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
bf1cc35
fix: change all 'two factor' to 'two-factor' in translation
BeeMargarida 9a8ec11
fix: make two-factor consistent in code comments as well
BeeMargarida 6a3ec66
fix: use download translation in CodesPage
BeeMargarida 96e49c3
fix: wrong state in validate login modal after 2FA
BeeMargarida 93936a2
refactor: rename `isTfaRequired` to `is2FARequired`
BeeMargarida eaf3059
fix: broken view of codes page on small screen
BeeMargarida d92dabc
fix: clear account error messages when entering verify page
BeeMargarida 4da2f31
fix: add missing condition for validate login page
BeeMargarida d205df2
style: prettier
BeeMargarida bd39be1
refactor: extract state to variable
BeeMargarida 16a9656
refactor: move value to styles object
BeeMargarida c7e295f
fix: wrong padding horizontal variable
BeeMargarida 7da13b0
fix: incorrectly setting style
thiagobrez 1ee87e7
fix: padding in extra narrow screens
thiagobrez 931c335
chore: fix conflicts
thiagobrez 48a90a9
chore: add scrollview to CodesPage
thiagobrez 023e5d9
Merge branch 'main' into fix/19187-2fa_fixes
thiagobrez File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@BeeMargarida Do you remember why we had to add the
!isSignedIn
condition here? This caused a regression #21258There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@s77rt Yes, it came from this commit to fix this bug mentioned in this slack thread.
Before, it was necessary because the check for
AbracadabraModal
(nowJustSignedInModal
) usedNOT_STARTED
state (this is because the state was cleaned on startup - mentioned in the proposal), so we needed to differentiate between that one and the one forValidateCodeModal
. At the time, the only difference was that for the abracadabra, theisSignedIn
was true and false for theValidateCodeModal
.I don't think it was a regression from here specifically, since this changed a lot after this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@BeeMargarida Thank you!