1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 16:53:34 +00:00

box row links use default colors

This commit is contained in:
Kyle Spearrin
2018-01-31 21:40:02 -05:00
parent 88c730981a
commit 99b0b57a5e
5 changed files with 16 additions and 5 deletions

View File

@@ -93,11 +93,19 @@ export class PasswordGeneratorComponent implements OnInit {
}
if (!this.options.minNumber) {
this.options.minNumber = 0;
} else if (this.options.minNumber > 5) {
this.options.minNumber = 5;
}
if (!this.options.minSpecial) {
this.options.minSpecial = 0;
} else if (this.options.minSpecial > 5) {
this.options.minSpecial = 5;
}
if (this.options.length > 128) {
if (!this.options.length) {
this.options.length = 5;
} else if (this.options.length > 128) {
this.options.length = 128;
}
}