mirror of
https://github.com/bitwarden/web
synced 2025-12-16 00:03:25 +00:00
Fix password score display switch statement (#481)
This commit is contained in:
@@ -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 + ')';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user