1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 17:23:37 +00:00

[PM-2135] fix: show correct error messages

This commit is contained in:
Andreas Coroiu
2023-05-26 10:56:51 +02:00
parent 61d88522de
commit 6fde0bd8ea
2 changed files with 6 additions and 6 deletions

View File

@@ -49,7 +49,11 @@ export class UserVerificationComponent implements ControlValueAccessor, OnInit,
() => {
if (this.invalidSecret) {
return {
invalidSecret: { message: this.i18nService.t("incorrectPassword") },
invalidSecret: {
message: this.usesKeyConnector
? this.i18nService.t("incorrectCode")
: this.i18nService.t("incorrectPassword"),
},
};
}
},