mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
force length to 5 when < 5
This commit is contained in:
@@ -88,7 +88,7 @@ export class PasswordGeneratorComponent implements OnInit {
|
||||
}
|
||||
}
|
||||
|
||||
if (!this.options.length) {
|
||||
if (!this.options.length || this.options.length < 5) {
|
||||
this.options.length = 5;
|
||||
} else if (this.options.length > 128) {
|
||||
this.options.length = 128;
|
||||
|
||||
Reference in New Issue
Block a user