1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-27 12:36:14 +01:00

force length to 5 when < 5

This commit is contained in:
Kyle Spearrin 2018-06-20 22:12:15 -04:00
parent d75543e6c8
commit 6e501dddb9

View File

@ -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; this.options.length = 5;
} else if (this.options.length > 128) { } else if (this.options.length > 128) {
this.options.length = 128; this.options.length = 128;