From 51d744132b84dfe79ebd50422d49c279b2ad4af0 Mon Sep 17 00:00:00 2001 From: Jacob Fink Date: Tue, 30 May 2023 12:02:33 -0400 Subject: [PATCH] update register component again with more crypto service --- libs/angular/src/components/register.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/angular/src/components/register.component.ts b/libs/angular/src/components/register.component.ts index 78509166e17..e297a0c733e 100644 --- a/libs/angular/src/components/register.component.ts +++ b/libs/angular/src/components/register.component.ts @@ -271,8 +271,8 @@ export class RegisterComponent extends CaptchaProtectedComponent implements OnIn const hint = this.formGroup.value.hint; const kdf = DEFAULT_KDF_TYPE; const kdfConfig = DEFAULT_KDF_CONFIG; - const key = await this.cryptoService.makeKey(masterPassword, email, kdf, kdfConfig); - const encKey = await this.cryptoService.makeEncKey(key); + const key = await this.cryptoService.makeMasterKey(masterPassword, email, kdf, kdfConfig); + const newUserSymKey = await this.cryptoService.makeUserSymKey(key); const hashedPassword = await this.cryptoService.hashPassword(masterPassword, key); const keys = await this.cryptoService.makeKeyPair(newUserSymKey[0]); const request = new RegisterRequest( @@ -280,7 +280,7 @@ export class RegisterComponent extends CaptchaProtectedComponent implements OnIn name, hashedPassword, hint, - encKey[1].encryptedString, + newUserSymKey[1].encryptedString, this.referenceData, this.captchaToken, kdf,