[PM-7777] Enhanced password generation #8951
Closed
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.
Type of change
Objective
Added 19 additional special characters (
()[]{}?/\-_.:,;=+<>
), which can be activated/deactivated without affecting the existing ones. The reason for putting a separate switch is because some web pages may not support certain characters or the user may not want such a complex password.Code changes
apps/browser/src/tools/popup/generator/generator.component.html
: Added anappBoxRow
to enable/disable the extra special characters.libs/common/src/tools/generator/password/password-generation-options.ts
: Added boolean (false
by default) for extra special characterslibs/common/src/tools/generator/password/password-generation.service.ts
: Added logic to concatenate the extra special characters as required.Screenshots
Disabled
Enabled
Deployment requirements
If this pull request is accepted, the name of the
appBoxRow
is written directly in the.html
in English and a key would have to be assigned for its translation (I mention it here because I don't know if I should have done it myself, but after a while researching about the translation system and messing around on https://crowdin.com/project/bitwarden-browser, I haven't been able to do this myself).