From 8912fe81870c53d1a6a6f15fd1276ec4f3b7cad9 Mon Sep 17 00:00:00 2001 From: Maciej Zieniuk <167752252+mzieniukbw@users.noreply.github.com> Date: Wed, 19 Feb 2025 22:03:20 +0100 Subject: [PATCH] PM-18337: Fresh account registration without key throws error, unable to login (#13425) --- libs/common/src/vault/services/cipher.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/common/src/vault/services/cipher.service.ts b/libs/common/src/vault/services/cipher.service.ts index 73d9511fb2b..e66b6be0524 100644 --- a/libs/common/src/vault/services/cipher.service.ts +++ b/libs/common/src/vault/services/cipher.service.ts @@ -430,7 +430,7 @@ export class CipherService implements CipherServiceAbstraction { if (keys == null || (keys.userKey == null && Object.keys(keys.orgKeys).length === 0)) { // return early if there are no keys to decrypt with - return; + return [[], []]; } // Group ciphers by orgId or under 'null' for the user's ciphers