diff --git a/libs/angular/src/vault/components/password-reprompt.component.ts b/libs/angular/src/vault/components/password-reprompt.component.ts index 0f0fd685b2..1094b37931 100644 --- a/libs/angular/src/vault/components/password-reprompt.component.ts +++ b/libs/angular/src/vault/components/password-reprompt.component.ts @@ -27,7 +27,8 @@ export class PasswordRepromptComponent { } async submit() { - if (!(await this.cryptoService.compareAndUpdateKeyHash(this.masterPassword, null))) { + const storedMasterKey = await this.cryptoService.getOrDeriveMasterKey(this.masterPassword); + if (!(await this.cryptoService.compareAndUpdateKeyHash(this.masterPassword, storedMasterKey))) { this.platformUtilsService.showToast( "error", this.i18nService.t("errorOccurred"),