From ffc23bfcdbe0d81d479a180a4bbf318714a4841e Mon Sep 17 00:00:00 2001 From: Jacob Fink Date: Tue, 30 May 2023 13:02:37 -0400 Subject: [PATCH] update password generation service to use new crypto service --- .../tools/generator/password/password-generation.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/common/src/tools/generator/password/password-generation.service.ts b/libs/common/src/tools/generator/password/password-generation.service.ts index 079d455c46d..55bab173cec 100644 --- a/libs/common/src/tools/generator/password/password-generation.service.ts +++ b/libs/common/src/tools/generator/password/password-generation.service.ts @@ -336,7 +336,7 @@ export class PasswordGenerationService implements PasswordGenerationServiceAbstr } async getHistory(): Promise { - const hasKey = await this.cryptoService.hasKey(); + const hasKey = await this.cryptoService.hasUserKey(); if (!hasKey) { return new Array(); } @@ -356,7 +356,7 @@ export class PasswordGenerationService implements PasswordGenerationServiceAbstr async addHistory(password: string): Promise { // Cannot add new history if no key is available - const hasKey = await this.cryptoService.hasKey(); + const hasKey = await this.cryptoService.hasUserKey(); if (!hasKey) { return; }