mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-28 17:27:50 +01:00
Fix password score display switch statement (#481)
This commit is contained in:
parent
a1fbe6b970
commit
7c0d093be5
@ -50,10 +50,13 @@ export class RegisterComponent extends BaseRegisterComponent {
|
|||||||
switch (this.enforcedPolicyOptions.minComplexity) {
|
switch (this.enforcedPolicyOptions.minComplexity) {
|
||||||
case 4:
|
case 4:
|
||||||
str = this.i18nService.t('strong');
|
str = this.i18nService.t('strong');
|
||||||
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
str = this.i18nService.t('good');
|
str = this.i18nService.t('good');
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
str = this.i18nService.t('weak');
|
str = this.i18nService.t('weak');
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
return str + ' (' + this.enforcedPolicyOptions.minComplexity + ')';
|
return str + ' (' + this.enforcedPolicyOptions.minComplexity + ')';
|
||||||
}
|
}
|
||||||
|
@ -65,10 +65,13 @@ export class ChangePasswordComponent implements OnInit {
|
|||||||
switch (this.enforcedPolicyOptions.minComplexity) {
|
switch (this.enforcedPolicyOptions.minComplexity) {
|
||||||
case 4:
|
case 4:
|
||||||
str = this.i18nService.t('strong');
|
str = this.i18nService.t('strong');
|
||||||
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
str = this.i18nService.t('good');
|
str = this.i18nService.t('good');
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
str = this.i18nService.t('weak');
|
str = this.i18nService.t('weak');
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
return str + ' (' + this.enforcedPolicyOptions.minComplexity + ')';
|
return str + ' (' + this.enforcedPolicyOptions.minComplexity + ')';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user