1
0
mirror of https://github.com/bitwarden/web synced 2025-12-15 07:43:16 +00:00

Fix password score display switch statement (#481)

This commit is contained in:
Vincent Salucci
2020-03-04 09:21:52 -06:00
committed by GitHub
parent a1fbe6b970
commit 7c0d093be5
2 changed files with 6 additions and 0 deletions

View File

@@ -50,10 +50,13 @@ export class RegisterComponent extends BaseRegisterComponent {
switch (this.enforcedPolicyOptions.minComplexity) {
case 4:
str = this.i18nService.t('strong');
break;
case 3:
str = this.i18nService.t('good');
break;
default:
str = this.i18nService.t('weak');
break;
}
return str + ' (' + this.enforcedPolicyOptions.minComplexity + ')';
}