-
Notifications
You must be signed in to change notification settings - Fork 290
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
feat: add button for 2fa submit [SQSERVICES-1991/ SQSERVICES-1940] #14961
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #14961 +/- ##
==========================================
- Coverage 42.88% 42.87% -0.01%
==========================================
Files 630 630
Lines 21439 21446 +7
Branches 4920 4923 +3
==========================================
+ Hits 9194 9196 +2
- Misses 11078 11083 +5
Partials 1167 1167 |
src/script/auth/page/Login.tsx
Outdated
style={{marginTop: 60}} | ||
onCodeComplete={submitTwoFactorLogin} | ||
data-uie-name="enter-code" | ||
markInvalid={!!twoFactorSubmitError} | ||
// markInvalid={!!twoFactorSubmitError} |
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.
what shall we do with that?
src/script/auth/page/Login.tsx
Outdated
style={{marginTop: 60}} | ||
onCodeComplete={submitTwoFactorLogin} | ||
data-uie-name="enter-code" | ||
markInvalid={!!twoFactorSubmitError} | ||
// markInvalid={!!twoFactorSubmitError} |
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.
// markInvalid={!!twoFactorSubmitError} |
src/script/auth/page/Login.tsx
Outdated
style={{marginTop: 60}} | ||
onCodeComplete={submitTwoFactorLogin} | ||
data-uie-name="enter-code" | ||
markInvalid={!!twoFactorSubmitError} | ||
// markInvalid={!!twoFactorSubmitError} |
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.
removed this comment/ line
setTwoFactorSubmitError(''); | ||
handleSubmit({...twoFactorLoginData, verificationCode: code}, []); | ||
// Do not auto submit if already failed once |
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.
👍
8db776a
to
c05bc6d
Compare
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764
The PR Description
What's new in this PR?
Issues
UI does not have appropriate user feedback to understand what happens when 2fa code is entered.
Screen.Recording.2023-04-03.at.15.01.54.mov
Solutions
Adds a button to 2fa login flow to allow blocking the UI. (first usage is submitted automatically)
Screen.Recording.2023-04-03.at.14.57.52.mov
Needs releases with:
FRIDA