diff --git a/src/app/vault/add-edit.component.html b/src/app/vault/add-edit.component.html index de081aeb..445d8497 100644 --- a/src/app/vault/add-edit.component.html +++ b/src/app/vault/add-edit.component.html @@ -188,7 +188,7 @@ -
{{'attachments' | i18n}}
diff --git a/src/app/vault/password-generator.component.html b/src/app/vault/password-generator.component.html index a1b86409..915a3f23 100644 --- a/src/app/vault/password-generator.component.html +++ b/src/app/vault/password-generator.component.html @@ -5,11 +5,11 @@
{{password}}
- {{'regeneratePassword' | i18n}} - {{'copyPassword' | i18n}} diff --git a/src/app/vault/password-generator.component.ts b/src/app/vault/password-generator.component.ts index caef99cf..2bf82b5e 100644 --- a/src/app/vault/password-generator.component.ts +++ b/src/app/vault/password-generator.component.ts @@ -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; } } diff --git a/src/scss/box.scss b/src/scss/box.scss index beff8401..94cf6a1f 100644 --- a/src/scss/box.scss +++ b/src/scss/box.scss @@ -26,7 +26,6 @@ padding: 10px 15px; position: relative; z-index: 1; - color: $text-color; overflow-wrap: break-word; word-break: break-all; diff --git a/src/scss/misc.scss b/src/scss/misc.scss index 9d5c6c63..50345ad0 100644 --- a/src/scss/misc.scss +++ b/src/scss/misc.scss @@ -8,6 +8,10 @@ color: $text-muted !important; } +.text-default { + color: $text-color !important; +} + .text-center { text-align: center; }