diff --git a/libs/angular/src/auth/components/user-verification-prompt.component.ts b/libs/angular/src/auth/components/user-verification-prompt.component.ts index 67e57f441d3..ae216b6c2e8 100644 --- a/libs/angular/src/auth/components/user-verification-prompt.component.ts +++ b/libs/angular/src/auth/components/user-verification-prompt.component.ts @@ -50,11 +50,7 @@ export class UserVerificationPromptComponent { this.invalidSecret = false; } catch (e) { this.invalidSecret = true; - this.platformUtilsService.showToast( - "error", - this.i18nService.t("error"), - this.i18nService.t("invalidMasterPassword") - ); + this.platformUtilsService.showToast("error", this.i18nService.t("error"), e.message); return; } diff --git a/libs/angular/src/auth/components/user-verification.component.ts b/libs/angular/src/auth/components/user-verification.component.ts index 6cc6500161d..2833833e228 100644 --- a/libs/angular/src/auth/components/user-verification.component.ts +++ b/libs/angular/src/auth/components/user-verification.component.ts @@ -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"), + }, }; } },