-
Notifications
You must be signed in to change notification settings - Fork 7
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
[BWA-38] Make imported 2FAS fields optional #113
Conversation
No New Or Fixed Issues Found |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #113 +/- ##
=======================================
Coverage 61.97% 61.97%
=======================================
Files 199 199
Lines 6754 6754
=======================================
Hits 4186 4186
Misses 2568 2568 ☔ View full report in Codecov by Sentry. |
@@ -19,8 +19,9 @@ class GoogleImporter { | |||
return payload.otpParameters.compactMap { item in | |||
guard item.type == .otpTotp else { return nil } | |||
let secret = item.secret.base32String() | |||
// Google Authenticator current ignores algorithm and period on all platforms and digits on some platforms (but not iOS). | |||
// Therefore, we need to use defaults and keep the digits in a reasonable range, because Google Authenticator doesn't | |||
// Google Authenticator current ignores algorithm and period on all platforms |
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.
⛏️ line length
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.
This change fixes the line length warning; not sure why it's showing up as still existing
🎟️ Tracking
BWA-38
📔 Objective
This adjusts the 2FAS import to make all of the "otp" fields optional, as some exports may be missing some of these fields (as opposed to having them and leaving them empty). This should improve the 2FAS import experience.
⏰ 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