-
{{'regeneratePassword' | i18n}}
-
{{'copyPassword' | i18n}}
diff --git a/src/app/vault/password-generator.component.ts b/src/app/vault/password-generator.component.ts
index caef99cf94..2bf82b5e5c 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 beff84011e..94cf6a1f1d 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 9d5c6c63b2..50345ad044 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;
}