-
Notifications
You must be signed in to change notification settings - Fork 53
[PM-8222] New device verification page fixes #1381
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
Conversation
Great job, no security vulnerabilities found in this Pull Request |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1381 +/- ##
==========================================
- Coverage 89.66% 89.66% -0.01%
==========================================
Files 765 765
Lines 48016 48024 +8
==========================================
+ Hits 43055 43061 +6
- Misses 4961 4963 +2 ☔ View full report in Codecov by Sentry. |
@@ -93,7 +93,7 @@ final class TwoFactorAuthProcessor: StateProcessor<TwoFactorAuthState, TwoFactor | |||
state.toast = newValue | |||
case let .verificationCodeChanged(newValue): | |||
state.verificationCode = newValue | |||
state.continueEnabled = (newValue.count >= 6) | |||
state.continueEnabled = newValue.count >= (state.deviceVerificationRequired ? 8 : 6) |
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.
♻️ Maybe for another PR and it's something really minor but I'd extract (state.deviceVerificationRequired ? 8 : 6)
to a private computed property that returns the minimum characters so to keep the logic simple here.
(cherry picked from commit e29448f)
(cherry picked from commit e29448f)
🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-8222
📔 Objective
When device needs verification:
Verify your identity
Invalid verification code
when the verification code is invalid.📸 Screenshots
Title fix:

Continue button enabled:


Error message:

⏰ Reminders before review
🦮 Reviewer guidelines
:+1:
) or similar for great changes:memo:
) or ℹ️ (:information_source:
) for notes or general info:question:
) for questions:thinking:
) or 💭 (:thought_balloon:
) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion:art:
) for suggestions / improvements:x:
) or:warning:
) for more significant problems or concerns needing attention:seedling:
) or ♻️ (:recycle:
) for future improvements or indications of technical debt:pick:
) for minor or nitpick changes