-
Notifications
You must be signed in to change notification settings - Fork 50
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
[PM-3434] Password generator #261
Conversation
No New Or Fixed Issues Found |
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 looks good from a quick glance. I think we should try and break up the deterministic portions of the code and unit tests those. Add a few tests ensuring the generated password contains the needed characters.
Bitwarden desktop, web, and browser update the minimum password length when the minimum digit value changes. The behavior works as follows:
This behavior was just confirmed as appropriate in PM-252, and should be preserved in your implementation. |
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.
- 👍 - for great changes
- ❓ - BLOCKS REVIEW - for questions
⚠️ - BLOCKS APPROVAL - for more significant problems or concerns needing attention- 📝 - for notes or general info
- 💭 - for open-ended inquiry that's not quite a confirmed issue and could potentially benefit from discussion
- 🎨 - for suggestions / improvements
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.
Just do what you're going to do.
…arSets to BTreeSets and implemented Distribution on them
# Conflicts: # crates/bitwarden/src/tool/generators/password.rs
Type of change
Objective
Implement password generation
The
min_
fields were set to bool incorrectly I assume, so I changed them to u8.At the moment if all the minimums turn out larger than the length, I just expand the length, but that seems wrong. I feel like it would be best to return an error in that case instead of changing any values behind the user, thoughts?