Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

core: generate all user keys on sign up (#9600)

Abdullah Atta24fca08fdc6e
diff --git a/packages/core/src/api/user-manager.ts b/packages/core/src/api/user-manager.ts
index 8a98d7642..aa0970808 100644
--- a/packages/core/src/api/user-manager.ts
+++ b/packages/core/src/api/user-manager.ts
@@ -106,6 +106,14 @@ class UserManager {
dataEncryptionKey: await this.keyManager.wrapKey(
await this.db.crypto().generateRandomKey(),
masterKey
+ ),
+ attachmentsKey: await this.keyManager.wrapKey(
+ await this.db.crypto().generateRandomKey(),
+ masterKey
+ ),
+ monographPasswordsKey: await this.keyManager.wrapKey(
+ await this.db.crypto().generateRandomKey(),
+ masterKey
)
});