From 4231ed74ba9fa130821a64d248f7e4ee010260ef Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 13 Nov 2018 09:10:44 -0500 Subject: [PATCH] adjust password strength meter --- src/app/components/password-strength.component.ts | 4 ++-- src/locales/en/messages.json | 10 +++++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/app/components/password-strength.component.ts b/src/app/components/password-strength.component.ts index 153a3740..fd3cefa6 100644 --- a/src/app/components/password-strength.component.ts +++ b/src/app/components/password-strength.component.ts @@ -28,8 +28,8 @@ export class PasswordStrengthComponent implements OnChanges { this.text = this.i18nService.t('strong'); break; case 3: - this.color = 'bg-warning'; - this.text = this.i18nService.t('ok'); + this.color = 'bg-primary'; + this.text = this.i18nService.t('good'); break; case 2: this.color = 'bg-warning'; diff --git a/src/locales/en/messages.json b/src/locales/en/messages.json index 0e4309ad..d87215b4 100644 --- a/src/locales/en/messages.json +++ b/src/locales/en/messages.json @@ -2515,16 +2515,20 @@ }, "strong": { "message": "Strong", - "description": "ex. Strong password" + "description": "ex. A strong password. Scale: Weak -> Good -> Strong" + }, + "good": { + "message": "Good", + "description": "ex. A good password. Scale: Weak -> Good -> Strong" }, "weak": { "message": "Weak", - "description": "ex. Weak password" + "description": "ex. A weak password. Scale: Weak -> Good -> Strong" }, "weakMasterPassword": { "message": "Weak Master Password" }, "weakMasterPasswordDesc": { - "message": "The master password you have chosen is weak. You should use a strong master password to properly protect your Bitwarden account. Are you sure you want to use this master password?" + "message": "The master password you have chosen is weak. You should use a strong master password (or a passphrase) to properly protect your Bitwarden account. Are you sure you want to use this master password?" } }